LiveLoad.JSON (LiveLoad v0.0.1-rc.21)

Copy Markdown View Source

LiveLoad.JSON is a simple delegation module which delegates to one of a few optional JSON parsers. LiveLoad requires JSON decoding for decoding certain messages via the browser protocol.

If you are running an Elixir version above (and including) 1.18, this will automatically use the Elixir.JSON built-in module for decoding.

If you are running an Elixir version below (and including) 1.17, you must install one of the optional JSON libraries such as Jason or Poison.

This delegation module will be necessary until Elixir version 1.22 is fully released and this library is updated to work with only Elixir versions above 1.18, which is when Elixir.JSON was first introduced.

Summary

Functions

decode(args)

See JSON.decode/1.

encode!(args)

See JSON.encode!/1.

encode_to_iodata!(args)

See JSON.encode_to_iodata!/1.