org.apache.jackrabbit.commons.json
Class JsonUtil
java.lang.Object
org.apache.jackrabbit.commons.json.JsonUtil
public class JsonUtil
- extends Object
JSON utilities.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonUtil
public JsonUtil()
getJsonString
public static String getJsonString(String str)
- Generate a valid JSON string from the given
str
.
- Parameters:
str
- A String
- Returns:
- JSON string surrounded by double quotes.
- See Also:
- RFC 4627
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.