Method: Representable::JSON#from_json

Defined in:
lib/representable/json.rb

#from_json(data, *args) ⇒ Object

Parses the body as JSON and delegates to #from_hash.



28
29
30
31
# File 'lib/representable/json.rb', line 28

def from_json(data, *args)
  data = MultiJson.load(data)
  from_hash(data, *args)
end