Class JsonUtil
- java.lang.Object
-
- org.apache.jackrabbit.commons.json.JsonUtil
-
public class JsonUtil extends java.lang.Object
JSON utilities.
-
-
Constructor Summary
Constructors Constructor Description JsonUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getJsonString(java.lang.String str)
Generate a valid JSON string from the givenstr
.
-
-
-
Method Detail
-
getJsonString
public static java.lang.String getJsonString(java.lang.String str)
Generate a valid JSON string from the givenstr
.- Parameters:
str
- A String- Returns:
- JSON string surrounded by double quotes.
- See Also:
- RFC 4627
-
-