G
Gurpal 2000
Hi
I trying to generate some simple json for extjs use *without rails*.
Now say if i have a array of MyObject. Do i have to define my own
to_json?
Is there a library that would say convert an array of objects to json
WITH the param names?
class car
# registration
# make
# color
end
so the json should say something like
{ registration: "blah", make: "sdsdd", color: "oikooi" }
and if it's an array the json should look like something i can feed into
an EXTJS grid.
Thanks
I trying to generate some simple json for extjs use *without rails*.
Now say if i have a array of MyObject. Do i have to define my own
to_json?
Is there a library that would say convert an array of objects to json
WITH the param names?
class car
# registration
# make
# color
end
so the json should say something like
{ registration: "blah", make: "sdsdd", color: "oikooi" }
and if it's an array the json should look like something i can feed into
an EXTJS grid.
Thanks