From: Petite Abeille Date: 2008-02-02T01:34:53+09:00 Subject: Re: Parsing JSON (#155) 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.