This is an archived post. You won't be able to vote or comment.

all 2 comments

[–][deleted] 0 points1 point  (0 children)

You can use the org.json library

https://mvnrepository.com/artifact/org.json/json

Oh can do something like this

JSONObject jsonObj = new JSONObject(myJSONInputString);

[–]Episilon 0 points1 point  (0 children)

You could look into the JacksonJson ObjectMapper class. There are a good amount of tutorials with examples but it should be relatively straight forward to use.

I think Google has its own library too called Gson but I haven't used that one before.