Skip to content
Advertisement

Unable to find data in DTO from JSON object – parsing error ZonedDateTime

I am trying to convert the JSON timestamp object into Java

enter image description here

I have researched converting a JSON string to java but unsure what I’m looking for. I can get it to work if the JSON uses an array but unfortunately it does not use this approach.

JSON Payload

JavaScript

Event DTO

JavaScript

Update DTO

JavaScript

Advertisement

Answer

To resolving the parsing error I used the following annotation above my timestamp variable.

JavaScript

I can now return 200 OK

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement