- public static JSONObject getInfo(String response, String field) {
- JSONObject jObject = JSONObject.parseObject(response);
- JSONObject relationshipList = extractJsonObject(jObject, "relationship-list");
- JSONArray relationShip = extractJsonArray(relationshipList, "relationship");
+ public static JsonObject getInfo(String response, String field) {
+ JsonObject jObject = JsonParser.parseString(response).getAsJsonObject();
+ JsonObject relationshipList = extractJsonObject(jObject, "relationship-list");
+ JsonArray relationShip = extractJsonArray(relationshipList, "relationship");