Friday, July 2, 2010

[Rails] Re: Using json gem's encode instead of Rails'

Greg Hazel wrote:
> I'm interested in a JSONgem version of encode as well. I ran in to this
> issue:
>
> https://rails.lighthouseapp.com/projects/8994/tickets/3345-to_json-does-not-escape-unicode-characters
>
> which was only recently fixed. I would rather use the json gem than wait
> for Rails to find all the bugs and improve the speed of the home-grown
> json implementation.
>
> Any help?
I circumvented the Rails hack by making a hack of my own.

http://gist.github.com/461938

Hopefully, the Rails core team does not create more hacks of this
nature. Better yet, the hack should be removed. I want to choose which
version of to_json I use (instead of some Rails core dude).
--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate