I am using Jackson so that clients can send data to a JSN type between a server. I'm trying to use Jackson's full binding feature and I'm applying it to a standard POO. The problem is that Jackson has to add redundant data during the marshalings to the server, when I try to bring Pijo back on the client side, I get an error.
Here's a part of Jackson String:
{"_ class": "com.mycoomp.MyObject", "_ id": {"Time": 1300314145000, "New "Incorrect", "machine": 1652794940, "inc": - 510750341}, "language": "", "type" .....
MyObject has "language" and "type" But it does not have the word "time" in it, a new ???? And a ???? I am getting this error on the client side:
Unrecognized area "time" (class org.bson.types.ObjectId), [Source: Java is not marked as unknown .io.StringReader @ 1c56c60; Line: 1, column: 102] (through reference series: com.mycomp.MyObject ["_ id"] - gt; org.bson.types.ObjectId ["time"])
Also consider .. What kinds of serials are you going to need type definition?
Jackson does not add entries that are not searchable by objects (mistakes, public areas, Or explicitly through annotated); Except for those cases where you add @JasonType Infora Annotation to add type identifier.
Maybe you're serialing and more public fields will be sorted out?
Comments
Post a Comment