Keep only one JSON dependency
See original GitHub issueCurrently we depend on 3 JSON libraries 😖 :
- GSON which is the historic one (~it should remain only in our demos~, currently it is only used in demos)
- minimal-json which replaced it because of simple API. (but it was not replace in demo because of lack of time)
- jackson which is the last choice mainly because it supports
BigInteger
which is needed to support unsigned integer from LWM2M v1.1 but also because minimal-json is not so much active. (e.g.https://github.com/ralfstx/minimal-json/issues/88). We have also some hint which could make us thought that Jackson could be faster. The main drawback of jackson the lib is fat (~1,8 Mo vs ~33 ko) but I guess we will live with it. (except if someone propose a better solution 🤯)
So there is a lot of Serializer/Deserializer to rewrite with Jackson to be able to remove GSON and minimal-json dependencies
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
How to npm install to only save dependency to package.json?
So that it only creates a dependency for the latest version of the module in package.json without actually downloading the module or creating...
Read more >Adding dependencies to a package.json file - npm Docs
Specifying dependencies and devDependencies in a package.json file ... "devDependencies" : Packages that are only needed for local development and testing.
Read more >Bidirectional Relationship Support in JSON - Toptal
We want to preserve it, in both directions, without generating any errors. A real solution should allow circular dependencies in JSON and allow...
Read more >Mapping Multiple JSON Fields to One Java Field - Baeldung
<dependency> <groupId>com.google.code.gson</groupId> <artifactId> ; public class Weather { private String location; private int ; @JsonProperty(" ...
Read more >json — JSON encoder and decoder — Python 3.11.1 ...
This module can thus also be used as a YAML serializer. Note. This module's encoders and decoders preserve input and output order by...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I created PR #1109
About jackson upgrade, https://github.com/eclipse/leshan/pull/1105 bump it to
2.12.5