Hi
I am trying to write a Delphi RESTCall using JSON.
We allready have a javaclass that works.
It is using this annotation to make Jackson able to parse correctly.
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, property = "className")
But what is the correspondent construction in Delphi?
My code:
s := TJson.ObjectToJsonString(o90RpcCall);
The error I get is this:
<div>JSON parse error: Missing type id when trying to resolve subtype of [simple type, class java.lang.Object]: missing type id property 'className' (for POJO property 'args'); nested exception is com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Missing type id when trying to resolve subtype of [simple type, class java.lang.Object]: missing type id property 'className' (for POJO property 'args')
at [Source: (PushbackInputStream); line: 1, column: 181] (through reference chain: o90client.generel.JSONRPCCall["args"]->java.lang.Object[][0])</div></body></html>
I guess it is because of the lack of annotation in my class