JSON in JavaScript in Rails3
Provides an easy-to-use Rails 3.1 asset for Json2.js
Install
Add it to your Rails application's Gemfile
:
gem 'json2-rails'
Then bundle install
.
Usage
Add the following to your app/assets/javascripts/application.js
:
//= require json2
//= require cycle
//= require json
//= require json_parse
//= require json_parse_state