Skip to content

Instantly share code, notes, and snippets.

@mperham
Created March 2, 2009 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mperham/72917 to your computer and use it in GitHub Desktop.
Save mperham/72917 to your computer and use it in GitHub Desktop.
require 'rubygems'
gem 'rails', '2.2.2'
gem 'json', '1.1.3' # or json_pure, both break
# Switch these requires and it works
require 'json'
require 'activesupport'
data = { :a => [1,2,3] }
puts data.to_json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment