Generic JSON Object Parsing or Unknwon JSON Object parsing using Gson librarry
public class JsonParsing { static JsonParser parser = new JsonParser() ; public static HashMap<String , Object> createHashMapFromJsonString(String json) { JsonObject object = (JsonObject) parser .parse(json) ; Set<Map.Entry<String , JsonElement>> set = object.entrySet() ; Iterator<Map.Entry<String , JsonElement>> iterator = set.iterator() ; HashMap<String , Object> map = new HashMap<String , Object>() ; while (iterator.hasNext()) { Map.Entry<String , JsonElement> entry = iterator.next() ; String key = entry.getKey() ; JsonElement value = entry.getValue() ; if ( null != value) { if (!value.isJsonPrimitive()) { if (value.isJsonObject()) { map.put(key , createHashMapFromJsonString (value.toString())...