Skip to content

Releases: nalundgaard/jsn

Patch jsn:delete to delete objects at end of path

29 Mar 18:12
Compare
Choose a tag to compare
  • Patch jsn:delete to delete objects at end of path (#43)

Export 'json_map()' type, remove ifdef(TEST) logic

04 Nov 18:33
Compare
Choose a tag to compare
  • Export 'json_map()' type, remove ifdef(TEST) logic (#39)
  • EDoc fix (#38)

Implement with/2 and without/2

09 Jun 14:36
245cbf4
Compare
Choose a tag to compare
  • Implement with/2 and without/2 (#36)

Fix nested key deletion

09 Feb 17:58
Compare
Choose a tag to compare
  • Fix nested key deletion (#34)

Refactor utility functions to use maps as the native format

09 Feb 17:55
Compare
Choose a tag to compare
  • Refactor utility functions to use maps as the native format (#32)

Delete unneeded rebar.config.script

09 Feb 17:54
66bc38f
Compare
Choose a tag to compare
  • Delete unneeded rebar.config.script (#30)

Array getter/setter fixes

09 Feb 17:56
Compare
Choose a tag to compare
  • Resolved #24, jsn:new fails while making an array of objects in struct ( resolved by PR #25)
  • Improved jsn:get_nth behavior for arrays of objects (#26)

2.1.1: Array getter/setter fixes

27 Feb 19:14
Compare
Choose a tag to compare
  • Resolved #24, jsn:new fails while making an array of objects in struct ( resolved by PR #25)
  • Improved jsn:get_nth behavior for arrays of objects (#26)

2.1.0: Conversion function improvements, better error handling, README updates

06 Nov 17:22
Compare
Choose a tag to compare
  • Implement from_map/1,2 and as_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 of maps:fold/3)
  • Improve guards and error outputs on unexpected inputs in a number of functions throughout the library: more consistent badarg errors instead of case_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.

06 Nov 17:20
Compare
Choose a tag to compare
  • New default format: map
  • Remove compatibility with Erlang 17 and below.
  • Remove encode/decode functionality (no more jsonx dependency)
  • Remove key sorting functions