JSON deserialization
There are many cases with the current API where the JSON sent by the client cannot be parsed. The API returns:
JSON parse error: Cannot deserialize value of type
java.lang.Long
from Object value (tokenJsonToken.START_OBJECT
); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of typejava.lang.Long
from Object value (tokenJsonToken.START_OBJECT
) at [Source: (org.springframework.util.StreamUtils$NonClosingInputStream); line: 1, column: 1892] (through reference chain: org.gringlobal.model.AccessionSourceMap["cooperator"]->org.gringlobal.model.Cooperator["sysLang"]->org.gringlobal.model.SysLang["id"]) URL: https://workshop.ggce.genesys-pgr.org/a/1
Can we use a @JsonView
or another deserializer that will ignore objects at depth -- and just consider their id
?