On Monday 24 April 2006 12:28, Maninder, Singh wrote: > Maybe I am missing something very obvious, but guys does anyone know of any > JSON Validators around? > > The reason is when you do an eval(json_response), if the JSON format is not > proper, you'll only get an error like "Can't eval..". > > But, this doesn't help identify where the actual problem lies. > > Is there some kind of a schema or something we can write to check against? > > Thoughts?
for using JSON, I use json.js from http://crockford.com/JSON/js.html it's more secure than just doing an eval(), and also allows you to turn JS objects into JSON text strings to pass back to your application. -Jeremy -- Jeremy Kitchen ++ [EMAIL PROTECTED] http://ipaction.org/ -- defend your rights to fair use
pgpJGoye7PEQp.pgp
Description: PGP signature
_______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
