Class: Hanami::Utils::Json::MultiJsonAdapter Private
- Inherits:
-
Object
- Object
- Hanami::Utils::Json::MultiJsonAdapter
- Defined in:
- lib/hanami/utils/json.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
MultiJson adapter
Instance Method Summary collapse
- #generate(object) ⇒ Object private
- #parse(payload) ⇒ Object private
Instance Method Details
#generate(object) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
29 30 31 |
# File 'lib/hanami/utils/json.rb', line 29 def generate(object) MultiJson.dump(object) end |
#parse(payload) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 24 25 |
# File 'lib/hanami/utils/json.rb', line 23 def parse(payload) MultiJson.load(payload) end |