try {
JSONObject jsonObject = new JSONObject(jsonString);
} catch (JSONException e) {
e.printStackTrace();
}
try {
JSONParser parser = new JSONParser();
Object obj = parser.parse(jsonString);
JSONObject jsonObject = (JSONObject) obj;
} catch (ParseException e) {
e.printStackTrace();
}
try {
JSONObject jsonObject = new JSONObject(jsonString);
} catch (org.json.JSONException e) {
e.printStackTrace();
}
try {
ObjectMapper objectMapper = new ObjectMapper();
MyObject myObject = objectMapper.readValue(jsonString, MyObject.class);
} catch (JsonProcessingException e) {
e.printStackTrace();
}