org.apache.shindig.common.util
Class JsonConversionUtil

java.lang.Object
  extended by org.apache.shindig.common.util.JsonConversionUtil

public final class JsonConversionUtil
extends Object

Utilities for converting a JSON object to and from a URL encoding


Method Summary
static Map<String,String> fromJson(org.json.JSONObject obj)
           
static org.json.JSONObject fromRequest(javax.servlet.http.HttpServletRequest request)
           
static boolean isAllLiterals(org.json.JSONArray jsonArr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fromRequest

public static org.json.JSONObject fromRequest(javax.servlet.http.HttpServletRequest request)
                                       throws org.json.JSONException
Throws:
org.json.JSONException

fromJson

public static Map<String,String> fromJson(org.json.JSONObject obj)
                                   throws org.json.JSONException
Throws:
org.json.JSONException

isAllLiterals

public static boolean isAllLiterals(org.json.JSONArray jsonArr)
                             throws org.json.JSONException
Throws:
org.json.JSONException


Copyright © 2007-2012. All Rights Reserved.