rubygems JSON Alternate Hash to JSON


Example

require 'json'
document = JSON 'test'  => 23 # => "{\"test\":23}"

or

require 'json'
document = JSON['test' => 23] # => "{\"test\":23}"