Module org.jooq

Class JSONValue

java.lang.Object
org.jooq.tools.json.JSONValue

@Deprecated(forRemoval=true) public class JSONValue extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
- 3.21.0 - [#18329] - This shaded third party dependency will be removed without replacement. Please use any other JSON parser, instead - e.g. Jackson.
Author:
FangYidong<fangyidong@yahoo.com.cn>
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Escape quotes, \, /, \r, \n, \b, \f, \t and other control characters (U+0000 through U+001F).
    static Object
    Deprecated, for removal: This API element is subject to removal in a future version.
    Parse JSON text into java object from the input source.
    static Object
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Convert an object to JSON text.
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Encode an object into JSON text and write it to out.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JSONValue

      public JSONValue()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • writeJSONString

      public static void writeJSONString(Object value, Writer out) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Encode an object into JSON text and write it to out.
      Throws:
      IOException
      See Also:
    • toJSONString

      public static String toJSONString(Object value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Convert an object to JSON text.
      Returns:
      JSON text, or "null" if value is null or it's an NaN or an INF number.
      See Also:
    • escape

      public static String escape(String s)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Escape quotes, \, /, \r, \n, \b, \f, \t and other control characters (U+0000 through U+001F).
    • parseWithException

      public static Object parseWithException(Reader in) throws IOException, ParseException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parse JSON text into java object from the input source.
      Returns:
      Instance of the following: org.json.simple.JSONObject, org.json.simple.JSONArray, java.lang.String, java.lang.Number, java.lang.Boolean, null
      Throws:
      IOException
      ParseException
    • parseWithException

      public static Object parseWithException(String s) throws ParseException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      ParseException