var theSource = "{name:'Gavin', age:33}"; eval( "theObject = " + theSource ); alert( theObject.name ); --> Gavin
Giant Cranes wrote:
Phrogz wrote: > var theSource = "{name:'Gavin', age:33}"; > eval( "theObject = " + theSource ); > alert( theObject.name ); > --> Gavin
I am trying to deserialise from JSON -> ruby.
Oops, sorry - didn't read properly.