SuperJSON encoder and decoder for Elixir.
SuperJSON extends JSON with annotations (meta) that describe rich JavaScript/TypeScript
data types (Dates, BigInts, Regexps, Sets, Maps, undefined, referential equalities).
This module allows you to encode and decode these payloads transparently.
Summary
Functions
Decodes a SuperJSON payload (a map or raw JSON binary string).
Decodes a SuperJSON payload or raises an error if binary JSON parsing fails.
Encodes a native Elixir term into a SuperJSON-compliant map {"json" => ..., "meta" => ...}.
Encodes a native Elixir term into a raw SuperJSON binary string.
Functions
Decodes a SuperJSON payload (a map or raw JSON binary string).
Decodes a SuperJSON payload or raises an error if binary JSON parsing fails.
Encodes a native Elixir term into a SuperJSON-compliant map {"json" => ..., "meta" => ...}.
Encodes a native Elixir term into a raw SuperJSON binary string.