Ok. Added a patch for this:

http://github.com/weplay/rails/commit/b73fc178190a98a60d3e4e896e73c9380d7aeea1

On Jan 12, 8:10 pm, "Mislav Marohnić" <[email protected]>
wrote:
> On Tue, Jan 13, 2009 at 01:20, nootch <[email protected]> wrote:
>
> > Is this intentional or a bug? If all keys were double quoted this
> > would become:
>
> > >> {1 => 2}.to_json
> > => "{\"1\": 2}"
>
> It is a bug. JSON doesn't allow data types for keys other than strings. It
> also dictates, as you've noticed, double quote marks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to