Use the :erlang.float_to_binary(_, [:short]) function, instead of io_lib_format.fwrite_g/1
where available (OTP 24.1+). This provides equivalent output with much less memory used
and significantly improved performance.
v1.3.0
Enhancements
Add the Jason.OrderedObject struct
Support decoding objects preserving all the keys with objects: :ordered_objects option
Support decoding floats to Decimal with floats: :decimals option
Add ~j and ~J sigils in module Jason.Sigil to support writing JSON literals in code
Fixes
Fix error reporting when decoding strings (it was possible to mis-attribute the offending byte)
Use the :erlang.float_to_binary(_, [:short]) function, instead of io_lib_format.fwrite_g/1
where available (OTP 24.1+). This provides equivalent output with much less memory used
and significantly improved performance.
1.3.0 (21.12.2021)
Enhancements
Add the Jason.OrderedObject struct
Support decoding objects preserving all the keys with objects: :ordered_objects option
Support decoding floats to Decimal with floats: :decimals option
Add ~j and ~J sigils in module Jason.Sigil to support writing JSON literals in code
Fixes
Fix error reporting when decoding strings (it was possible to mis-attribute the offending byte)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps jason from 1.2.1 to 1.4.0.
Release notes
Sourced from jason's releases.
Changelog
Sourced from jason's changelog.
Commits
6a966cc
Release 1.4.08cdb760
Bump bench deps2b387a3
Bump CI versions61906b7
Bump deps2a83c8f
Use float_to_binary [:short] if available433a764
Bump OTP version in GitHub Actions (#153)a6a57d3
Update README.md (#152)d5a75b9
fix release year (#146)84c2dbd
Release v1.3.07e25ebb
Add an option to decode JSON objects preserving orderDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)