Source: show | on GitHub
# File activeresource/lib/active_resource/formats/json_format.rb, line 20 20: def decode(json) 21: Formats.remove_root(ActiveSupport::JSON.decode(json)) 22: end
# File activeresource/lib/active_resource/formats/json_format.rb, line 16 16: def encode(hash, options = nil) 17: ActiveSupport::JSON.encode(hash, options) 18: end
# File activeresource/lib/active_resource/formats/json_format.rb, line 8 8: def extension 9: "json" 10: end
# File activeresource/lib/active_resource/formats/json_format.rb, line 12 12: def mime_type 13: "application/json" 14: end