nodeJavaDeserialization
nodeJavaDeserialization copied to clipboard
Deserialisation of java.time.Instant
Thanks for the great library. It works very well with lists but now I stucked with deserialisation of java.time.Instant.
For sample value of Instant type the parser returns the following object:
{
"@": [
{
"type": "Buffer",
"data": [
2,
0,
0,
0,
0,
91,
55,
239,
80,
0,
0,
0,
0
]
}
]
}
In debug mode I noticed internal class name and serialVersionUID (java.time.Ser and 955d84ba1b2248b2). I tried to add a custom parser for it but with no luck, the parser is even not invoked:
Parser.register("java.time.Ser", "955d84ba1b2248b2", customParser);
Could you maybe shed the light on that problem and suggest what should be done to introduce the support of deserialisation of Instant type?