Petite Abeille
2/1/2008 4:35:00 PM
On Feb 1, 2008, at 5:23 PM, Trans wrote:
> A bit aside, but it seems a good place to plug the thought: JSON is so
> close to valid Ruby syntax. It would be great if Ruby could support
> the syntax 100%. Then a parse would be as simple as,
>
> data = eval(json)
Brilliant!
But perhaps the other way around: bridge the JSON syntax discrepencies
to valid Ruby syntax, e.g:
eval( to_ruby( json ) )
Cheers,
PA.