Method: Elastictastic.json_decode
- Defined in:
- lib/elastictastic.rb
.json_decode(json) ⇒ 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.
Use Elastictastic’s configured JSON decoder to decode a JSON message
183 184 185 186 187 188 189 |
# File 'lib/elastictastic.rb', line 183 def json_decode(json) if config.json_engine.respond_to?(:decode) config.json_engine.decode(json) else config.json_engine.load(json) end end |