document return_maps
in README
This commit is contained in:
parent
989609b250
commit
3e80f475f5
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
v2.2
|
||||||
|
|
||||||
|
* `return_maps` option
|
||||||
|
|
||||||
v2.1.1
|
v2.1.1
|
||||||
|
|
||||||
* faster generation of json via iolists
|
* faster generation of json via iolists
|
||||||
|
|
|
@ -483,7 +483,7 @@ decode(JSON, Opts) -> Term
|
||||||
|
|
||||||
JSON = json_text()
|
JSON = json_text()
|
||||||
Term = json_term()
|
Term = json_term()
|
||||||
Opts = [option() | labels | {labels, Label}]
|
Opts = [option() | labels | {labels, Label} | return_maps]
|
||||||
Label = binary | atom | existing_atom | attempt_atom
|
Label = binary | atom | existing_atom | attempt_atom
|
||||||
F = fun((any()) -> any())
|
F = fun((any()) -> any())
|
||||||
```
|
```
|
||||||
|
@ -500,6 +500,10 @@ new atoms to the atom table and will result in a `badarg` error if the atom
|
||||||
does not exist. `attempt_atom` will convert keys to atoms when they exist,
|
does not exist. `attempt_atom` will convert keys to atoms when they exist,
|
||||||
and leave them as binary otherwise
|
and leave them as binary otherwise
|
||||||
|
|
||||||
|
the option `return_maps` will attempt to return objects as maps instead of
|
||||||
|
proplists. this option has no effect when used with releases that do not
|
||||||
|
support maps
|
||||||
|
|
||||||
raises a `badarg` error exception if input is not valid json
|
raises a `badarg` error exception if input is not valid json
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue