Dowser.Client.JSON.Jason (Dowser.Client v0.1.1)

View Source

JSON adapter backed by the Jason library.

Jason is an optional dependency. Add {:jason, "~> 1.4"} to your deps to use this adapter; a helpful error is raised at call time if it is missing.

encode/2 uses Jason.encode_to_iodata/2 to avoid building an intermediate binary. Any Jason option (e.g. keys: :atoms for decode/2) can be passed through opts.