Welcome to 16892 Developer Community-Open, Learning,Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I'm used to develop using javascript and now I got a project to work with Java, is there an easy way to read nested dynamic JSON in Java without having to create an extra class for every single object? My example is like this:

JsonNode response = client.request(url);

and I need to perform some checks on the response, so I'll need to create something like:

if(response.children.length > 0 && response.error == null) ...

I'm using springboot, not sure if it helps somehow. Thank you in advance!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
3.9k views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to 16892 Developer Community-Open, Learning and Share
...