[Nitro] Ruby library for serialization
george.moschovitis at gmail.com
Wed Feb 14 13:20:36 EST 2007
Thanks for the quick reply, when you are finished, can you send me the new
version of json.rb/xoxo.rb ?
On 2/14/07, transfire at gmail.com <transfire at gmail.com> wrote:
> On Feb 14, 11:35 am, "George Moschovitis"
> <george.moschovi... at gmail.com> wrote:
> > as i demonstrated to_json does not work as expected...
> sorry. i didn't read carfully enough. and you are right. to_json only
> works with specific types that account for it. but i have a solution.
> since YAML is a superset of JSON:
> class Object
> def to_json(*)
> str = to_yaml
> str.sub!(/^---.*?$/, '---')
> I'll make this change to Facets.
> (Also fixed to_xoxo, so it will now work too).
> Nitro-general mailing list
> Nitro-general at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Nitro-general