Package io.quarkus.builder
Class Json
java.lang.Object
io.quarkus.builder.Json
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 ClassesModifier and TypeClassDescriptionstatic classDeprecated, for removal: This API element is subject to removal in a future version.JSON array builder.static classDeprecated, for removal: This API element is subject to removal in a future version.static classDeprecated, for removal: This API element is subject to removal in a future version.JSON object builder. -
Method Summary
Modifier and TypeMethodDescription(package private) static voidappendStringValue(Appendable appendable, String value, boolean skipEscapeCharacters) Deprecated, for removal: This API element is subject to removal in a future version.(package private) static voidappendValue(Appendable appendable, Object value, boolean skipEscapeCharacters) Deprecated, for removal: This API element is subject to removal in a future version.static Json.JsonArrayBuilderarray()Deprecated, for removal: This API element is subject to removal in a future version.static Json.JsonArrayBuilderarray(boolean ignoreEmptyBuilders, boolean skipEscapeCharacters) Deprecated, for removal: This API element is subject to removal in a future version.(package private) static StringDeprecated, 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).static Json.JsonObjectBuilderobject()Deprecated, for removal: This API element is subject to removal in a future version.static Json.JsonObjectBuilderobject(boolean ignoreEmptyBuilders, boolean skipEscapeCharacters) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
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
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
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:
-