Class Json

java.lang.Object
io.quarkus.builder.Json

@Deprecated(forRemoval=true) public final class Json extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
since 3.31.0 in favor of io.quarkus.bootstrap.json.Json A simple JSON string generator.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
    JSON array builder.
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
    JSON object builder.
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static void
    appendStringValue(Appendable appendable, String value, boolean skipEscapeCharacters)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    (package private) static void
    appendValue(Appendable appendable, Object value, boolean skipEscapeCharacters)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    array(boolean ignoreEmptyBuilders, boolean skipEscapeCharacters)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    (package private) static String
    escape(String value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Escape quotation mark, reverse solidus and control characters (U+0000 through U+001F).
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    object(boolean ignoreEmptyBuilders, boolean skipEscapeCharacters)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

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

    • array

      public static Json.JsonArrayBuilder array()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the new JSON array builder, empty builders are not ignored
    • array

      public static Json.JsonArrayBuilder array(boolean ignoreEmptyBuilders, boolean skipEscapeCharacters)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      ignoreEmptyBuilders -
      Returns:
      the new JSON array builder
      See Also:
    • object

      public static Json.JsonObjectBuilder object()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the new JSON object builder, empty builders are not ignored
    • object

      public static Json.JsonObjectBuilder object(boolean ignoreEmptyBuilders, boolean skipEscapeCharacters)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      ignoreEmptyBuilders -
      Returns:
      the new JSON object builder
      See Also:
    • appendValue

      static void appendValue(Appendable appendable, Object value, boolean skipEscapeCharacters) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IOException
    • appendStringValue

      static void appendStringValue(Appendable appendable, String value, boolean skipEscapeCharacters) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IOException
    • escape

      static String escape(String value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Escape quotation mark, reverse solidus and control characters (U+0000 through U+001F).
      Parameters:
      value -
      Returns:
      escaped value
      See Also: