But how best to convert this - am I basically left with having to create a model class; or use long-form reflection - is there a shorter way?
j
johnaqel
08/27/2019, 5:34 AM
Would something like JsonPath help? (https://github.com/json-path/JsonPath) I’ve used it in the past when wanting to dynamically access JSON without creating static models.
🌟 1
d
darkmoon_uk
08/27/2019, 5:37 AM
That will do very nicely sir, thank you!
darkmoon_uk
08/27/2019, 5:50 AM
@johnaqelJsonPath applied and working 👍
🖖 1
g
gildor
08/27/2019, 5:53 AM
actually any parser will work without static models. For example
org.json
also very lightweight and don’t have additional dependencies like json-path
gildor
08/27/2019, 5:56 AM
also JsonSlurper also works, you don’t need reflection to use it, just bad API