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.
37 38 39 40 |
# File 'lib/representable/json.rb', line 37 def from_json(data, *args) data = MultiJson.load(data) from_hash(data, *args) end |