Methods
Public Instance methods
[ show source ]
# File vendor/rails/activeresource/lib/active_resource/formats/json_format.rb, line 18
18: def decode(json)
19: ActiveSupport::JSON.decode(json)
20: end
[ show source ]
# File vendor/rails/activeresource/lib/active_resource/formats/json_format.rb, line 14
14: def encode(hash, options={})
15: hash.to_json(options)
16: end
[ show source ]
# File vendor/rails/activeresource/lib/active_resource/formats/json_format.rb, line 6 6: def extension 7: "json" 8: end
[ show source ]
# File vendor/rails/activeresource/lib/active_resource/formats/json_format.rb, line 10
10: def mime_type
11: "application/json"
12: end