Package com.nimbusds.jose.util
Class JSONStringUtils
- java.lang.Object
-
- com.nimbusds.jose.util.JSONStringUtils
-
public class JSONStringUtils extends Object
JSON string helper methods.- Version:
- 2022-08-16
- Author:
- Vladimir Dzhuvinov
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
toJSONString(String string)
Serialises the specified string to a JSON string.
-
-
-
Method Detail
-
toJSONString
public static String toJSONString(String string)
Serialises the specified string to a JSON string.- Parameters:
string
- The string. Must not benull
.- Returns:
- The string as JSON string.
-
-