View Source jsxrecord (jsxrecord v2.3.0)
JSON with records and 'undefined'/'null' mapping.
Summary
Functions
Decode JSON with optional control over automatic conversions. Defaults preserve decode/1 behavior. Use codecs => [], records => false, null => null to retain JSON strings, objects and null values unchanged.
Load all record definitions.
Functions
-spec decode(binary() | undefined, #{codecs => [timestamp | datetime], records => boolean(), null => term()}) -> term().
Decode JSON with optional control over automatic conversions. Defaults preserve decode/1 behavior. Use codecs => [], records => false, null => null to retain JSON strings, objects and null values unchanged.
-spec record_defs() -> map().
Load all record definitions.