Releases: nalundgaard/jsn
Releases · nalundgaard/jsn
Patch jsn:delete to delete objects at end of path
- Patch jsn:delete to delete objects at end of path (#43)
Export 'json_map()' type, remove ifdef(TEST) logic
Implement with/2 and without/2
- Implement with/2 and without/2 (#36)
Fix nested key deletion
- Fix nested key deletion (#34)
Refactor utility functions to use maps as the native format
- Refactor utility functions to use maps as the native format (#32)
Delete unneeded rebar.config.script
- Delete unneeded rebar.config.script (#30)
Array getter/setter fixes
2.1.1: Array getter/setter fixes
2.1.0: Conversion function improvements, better error handling, README updates
- Implement
from_map/1,2
andas_map/1
functions; these work similarly to the from/as_proplist suite. - Improve
from_proplist/1,2
converter:- Only extract the format from
Opts
input one time instead of N times. - Stop converting keys to binary: This makes the function work more similarly to from/as_map, which doesn’t transform keys (allowing us to modify maps using
maps:map/2
instead ofmaps:fold/3
)
- Only extract the format from
- Improve guards and error outputs on unexpected inputs in a number of functions throughout the library: more consistent
badarg
errors instead ofcase_clause
,function_clause
, etc. - Add README examples of conversion functions
- Fix README examples overlooked in change to map as the default format.
2.0.0: Erlang 18+, maps by default, etc.
- New default format: map
- Remove compatibility with Erlang 17 and below.
- Remove encode/decode functionality (no more jsonx dependency)
- Remove key sorting functions