Code example for JsonParser

Methods: parse

0
		gson = new Gson();
		parser = new JsonParser();
	} 
 
	public void parseLastUpdated(String jsonString) {
		JsonObject obj = parser.parse(jsonString).getAsJsonObject();
		Last_Updated lastUp = gson.fromJson(obj, Last_Updated.class);
 
		System.err.println(lastUp); // to String in DataObjects implemented
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java