Class JSONParser


  • public final class JSONParser
    extends Object
    • Method Detail

      • getJSONStringValue

        public static String getJSONStringValue​(String json,
                                                String key)
      • getJSONIntValue

        public static int getJSONIntValue​(String json,
                                          String key)
      • buildJSONString

        public static String buildJSONString​(Object id,
                                             String method,
                                             org.json.JSONObject parameters)
      • sortJSONObject

        public static Map<String,​Object> sortJSONObject​(org.json.JSONObject parameters)
      • addKeyValue

        public static org.json.JSONObject addKeyValue​(org.json.JSONObject parameters,
                                                      String key,
                                                      Object value)
      • pullValue

        public static Object pullValue​(org.json.JSONObject parameters,
                                       String key)