question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keep only one JSON dependency

See original GitHub issue

Currently 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:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Michal-Wadowskicommented, Oct 15, 2021

I created PR #1109

1reaction
sbernard31commented, Oct 13, 2021

About jackson upgrade, https://github.com/eclipse/leshan/pull/1105 bump it to 2.12.5

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found