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 ++ kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org
http://ipaction.org/ -- defend your rights to fair use
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs