GeekedOut
GeekedOut

Reputation: 17185

How to get values out of Json that is in a string variable using Java

I have a JSON string inside a string variable like this:

   [{"user_id":"123","email":"[email protected]","lat":"40.748329","lng":"-73.996223",
                    "first_name":"Alex","last_name":"Genadinik"}]

Is there a way to just very quickly extract all the values using java? While googleing, I am running into very bulky and code-heavy examples that makes me think there must be a simpler way.

Thanks!

Upvotes: 2

Views: 104

Answers (1)

Ahmad Y. Saleh
Ahmad Y. Saleh

Reputation: 3349

Check Gson, it is a very simple google API

Upvotes: 4

Related Questions