Class: Restfully::MediaType::ApplicationJson::JSONParser

Inherits:
Object
  • Object
show all
Defined in:
lib/restfully/media_type/application_json.rb

Class Method Summary collapse

Class Method Details

.dump(object, *args) ⇒ Object



11
12
13
# File 'lib/restfully/media_type/application_json.rb', line 11

def self.dump(object, *args)
  JSON.dump(object)
end

.load(io, *args) ⇒ Object



8
9
10
# File 'lib/restfully/media_type/application_json.rb', line 8

def self.load(io, *args)
  JSON.load(io)
end