i building a json object that consists of nameValue pairs defined in a Hashmap
the issue i am having is when i invoke:
jsonObject.put(hashmap); >
jsonObject.put(hashmap);
Iterate through the HashMap and put to the jsonObject:
Iterator it = mp.entrySet().iterator(); while (it.hasNext()) { Map.Entry pairs = (Map.Entry)it.next(); jsonObject.put(pairs.getKey(), pairs.getValue() ); }