Module: Hanami::Utils::Json
- Defined in:
- gems/gems/hanami-utils-2.2.0.beta1/lib/hanami/utils/json.rb
Overview
JSON wrapper
If you use MultiJson gem this wrapper will use it. Otherwise - JSON std lib.
Class Method Summary collapse
-
.generate(object) ⇒ String
Generate a JSON document from the given object.
-
.parse(payload) ⇒ Object
Parses the given JSON paylod.