Make `JsonNode` serializable?
See original GitHub issueWould it be possible to make JsonNode java.io.Serializable
?
Issue Analytics
- State:
- Created 11 years ago
- Reactions:5
- Comments:14 (7 by maintainers)
Top 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 java.io.Serializable?
Hello all,. I have not found any json library where the generic JsonNode class implements java.io.Serializable, 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 - Jenkov.com
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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top 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
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
Actually. Now with 2.10 and #2187 I wonder…
There would be some limitations, of course:
json
would be supported as serialization format (but it’s JDK serialization so no one sees it anyway)JsonNode
(via customJsonNodeFactory
, or, in future, withNodeConfig
or such) could be applied; you would get stock vanillaJsonNode
backPOJONode
would probably lose its identity (although maybe not…)So… I’ll re-consider this issue.