Skip to content

Instantly share code, notes, and snippets.

@eventualbuddha
Created October 19, 2009 17:41
Show Gist options
  • Save eventualbuddha/213538 to your computer and use it in GitHub Desktop.
Save eventualbuddha/213538 to your computer and use it in GitHub Desktop.
>> ActiveSupport::JSON.decode(ActiveSupport::JSON.encode("<groups>"))
=> "\\u003Cgroups\\u003E"
>> JSON.parse(JSON.dump({:foo => '<groups>'}))
=> {"foo"=>"<groups>"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment