Package com.dotcms.repackage.org.codehaus.jettison.json

Examples of com.dotcms.repackage.org.codehaus.jettison.json.JSONObject.keys()


  @SuppressWarnings("unchecked")
  protected void processJSON(Contentlet contentlet, InputStream input) throws JSONException, IOException {
    HashMap<String,Object> map=new HashMap<String,Object>();
    JSONObject obj=new JSONObject(IOUtils.toString(input));
    Iterator<String> keys = obj.keys();
    while(keys.hasNext()) {
      String key=keys.next();
      Object value=obj.get(key);
      map.put(key, value.toString());
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.