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.

Make `JsonNode` serializable?

See original GitHub issue

Would it be possible to make JsonNode

Issue Analytics

  • State:closed
  • Created 11 years ago
  • Reactions:5
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

demetrio812commented, Feb 4, 2019

Hello @cowtowncoder thanks for reconsidering, I think the limitations are fine and understandable but this basic support will help a lot for use cases like the caching one.

Thanks, Dem

cowtowncodercommented, Feb 2, 2019

Actually. Now with 2.10 and #2187 I wonder…

There would be some limitations, of course:

  1. Only json would be supported as serialization format (but it’s JDK serialization so no one sees it anyway)
  2. On deserialization, no configuration of JsonNode (via custom JsonNodeFactory, or, in future, with NodeConfig or such) could be applied; you would get stock vanilla JsonNode back
  3. POJONode would probably lose its identity (although maybe not…)

So… I’ll re-consider this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Make JsonNode Serializable - java - Stack Overflow
Another suggestion is to always operate (create, serialize, deserialize) JsonNode via ObjectMapper : JsonNodeFactory is only meant for ...
Read more >
Jackson 2.10 feature: JsonNode improvements - cowtowncoder
Although JsonNode values are naturally serializable — that is, just write out as JSON — some frameworks (such as Spark, Flink and Hadoop) ......
Read more >
why does JsonNode not implement
Hello all,. I have not found any json library where the generic JsonNode class implements, and I don't really understand ...
Read more >
Java and JSON – Jackson Serialization with ObjectMapper
A complete set of examples for serialization and deserialization with ... Deserialize values using JsonNode; Deserialize to a simple Java ...
Read more >
Jackson JsonNode -
This Jackson JsonNode tutorial will also explain how to build JsonNode object graphs from scratch, so you can serialize them to JSON later....
Read more >

github_iconTop Related Medium Post

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 Post

No results found

github_iconTop Related Hashnode Post

No results found