But how best to convert this - am I basically left...
# gradle
d
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
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
That will do very nicely sir, thank you!
@johnaqel JsonPath applied and working 👍
🖖 1
g
actually any parser will work without static models. For example
org.json
also very lightweight and don’t have additional dependencies like json-path
also JsonSlurper also works, you don’t need reflection to use it, just bad API