View Source Elastix.JSON (Elastix Search v1.0.1)

A wrapper for JSON libraries with Poison as the default implementation.

To override, implement the Elastix.JSON.Codec behavior and specify it in the config:

config :elastix,
  json_codec: JiffyCodec

Decode options can be specified in the config:

# Poison decode with atom keys
config :elastix,
  json_options: [keys: atoms!]
# Jiffy decode with maps
config :elastix,
  json_codec: JiffyCodec,
  json_options: [:return_maps]