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 Details

    • toJSONString

      public static String toJSONString(String string)
      Serialises the specified string to a JSON string.
      Parameters:
      string - The string. Must not be null.
      Returns:
      The string as JSON string.