Class JsonUtil
java.lang.Object
org.apache.jackrabbit.commons.json.JsonUtil
JSON utilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetJsonString(String str) Generate a valid JSON string from the givenstr.
-
Constructor Details
-
JsonUtil
public JsonUtil()
-
-
Method Details
-
getJsonString
Generate a valid JSON string from the givenstr.- Parameters:
str- A String- Returns:
- JSON string surrounded by double quotes.
- See Also:
-