net.sourceforge.fluxion.ajax.util
Class JSONUtils
java.lang.Object
net.sourceforge.fluxion.ajax.util.JSONUtils
public class JSONUtils
- extends java.lang.Object
A utils class for working with JSON objects in an AJAX context
- Author:
- Tony Burdett, Rob Davey
Method Summary |
static net.sf.json.JSONObject |
JSONObjectResponse(net.sf.json.JSONObject... jsons)
|
static net.sf.json.JSONObject |
JSONObjectResponse(java.util.Map<java.lang.String,java.lang.String> jsonMap)
|
static net.sf.json.JSONObject |
JSONObjectResponse(java.lang.String json)
Deprecated. |
static net.sf.json.JSONObject |
JSONObjectResponse(java.lang.String key,
java.lang.String value)
|
static net.sf.json.JSONObject |
LoggedJSONResponse(java.lang.String content,
java.lang.String log)
|
static net.sf.json.JSONObject |
SimpleJSONError(java.lang.String error)
|
static net.sf.json.JSONObject |
SimpleJSONResponse(java.lang.String content)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSONUtils
public JSONUtils()
JSONObjectResponse
@Deprecated
public static net.sf.json.JSONObject JSONObjectResponse(java.lang.String json)
- Deprecated.
JSONObjectResponse
public static net.sf.json.JSONObject JSONObjectResponse(java.lang.String key,
java.lang.String value)
JSONObjectResponse
public static net.sf.json.JSONObject JSONObjectResponse(java.util.Map<java.lang.String,java.lang.String> jsonMap)
JSONObjectResponse
public static net.sf.json.JSONObject JSONObjectResponse(net.sf.json.JSONObject... jsons)
SimpleJSONResponse
public static net.sf.json.JSONObject SimpleJSONResponse(java.lang.String content)
LoggedJSONResponse
public static net.sf.json.JSONObject LoggedJSONResponse(java.lang.String content,
java.lang.String log)
SimpleJSONError
public static net.sf.json.JSONObject SimpleJSONError(java.lang.String error)
Copyright © 2010. All Rights Reserved.