JSONParser jsonParser = new JSONParser(); String jsonMessage = JSONMessageAsString; JSONObject jsonObject = null; try { jsonObject = (JSONObject) jsonParser.parse(jsonMessage); } catch (ParseException e) { System.out.println("Error in Parsing JSON"); } Long id = (Long) jsonObject.get("Id"); String name = (String) jsonObject.get("Name");