Package io.quarkus.builder
Class Json
java.lang.Object
io.quarkus.builder.Json
A simple JSON string generator.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classJSON array builder.static classstatic classJSON object builder. -
Method Summary
Modifier and TypeMethodDescription(package private) static voidappendStringValue(Appendable appendable, String value, boolean skipEscapeCharacters) (package private) static voidappendValue(Appendable appendable, Object value, boolean skipEscapeCharacters) static Json.JsonArrayBuilderarray()static Json.JsonArrayBuilderarray(boolean ignoreEmptyBuilders, boolean skipEscapeCharacters) (package private) static StringEscape quotation mark, reverse solidus and control characters (U+0000 through U+001F).static Json.JsonObjectBuilderobject()static Json.JsonObjectBuilderobject(boolean ignoreEmptyBuilders, boolean skipEscapeCharacters)
-
Method Details
-
array
- Returns:
- the new JSON array builder, empty builders are not ignored
-
array
public static Json.JsonArrayBuilder array(boolean ignoreEmptyBuilders, boolean skipEscapeCharacters) - Parameters:
ignoreEmptyBuilders-- Returns:
- the new JSON array builder
- See Also:
-
object
- Returns:
- the new JSON object builder, empty builders are not ignored
-
object
public static Json.JsonObjectBuilder object(boolean ignoreEmptyBuilders, boolean skipEscapeCharacters) - Parameters:
ignoreEmptyBuilders-- Returns:
- the new JSON object builder
- See Also:
-
appendValue
static void appendValue(Appendable appendable, Object value, boolean skipEscapeCharacters) throws IOException - Throws:
IOException
-
appendStringValue
static void appendStringValue(Appendable appendable, String value, boolean skipEscapeCharacters) throws IOException - Throws:
IOException
-
escape
Escape quotation mark, reverse solidus and control characters (U+0000 through U+001F).- Parameters:
value-- Returns:
- escaped value
- See Also:
-