Method: Representable::JSON#to_json
- Defined in:
- lib/representable/json.rb
#to_json(*args) ⇒ Object Also known as: render
Returns a JSON string representing this object.
41 42 43 |
# File 'lib/representable/json.rb', line 41 def to_json(*args) MultiJson.dump to_hash(*args) end |