Skip to content

Tag: json

JsonObject returns {“empty”:false} in API response

I have the following code on my project: When I Log htmlcda parameter, I get the html string correctly. However, in response results JsonObject I get {“empty”:false}. Any help please? Answer Spring boot uses jackson as default serializer and you’re trying to return JSONObject itself. Jackson…

Getting NullPointerException while trying to deserialize json

I am getting NullPointerException while trying to deserialize json. I am trying to deserialize only select JSON objects from https://api.covid19india.org/data.json I have written code Statewise.java calling method Please help Answer The JSON returned contains “statewise” property. So to get it des…