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.(package private) static classstatic classJSON object builder. -
Method Summary
Modifier and TypeMethodDescription(package private) static voidappendStringValue(Appendable appendable, String value) (package private) static voidappendValue(Appendable appendable, Object value) static Json.JsonArrayBuilderarray()(package private) static Json.JsonArrayBuilderarray(boolean ignoreEmptyBuilders) (package private) static StringEscape quotation mark, reverse solidus and control characters (U+0000 through U+001F).static Json.JsonObjectBuilderobject()(package private) static Json.JsonObjectBuilderobject(boolean ignoreEmptyBuilders)
-
Method Details
-
array
- Returns:
- the new JSON array builder, empty builders are not ignored
-
array
- Parameters:
ignoreEmptyBuilders-- Returns:
- the new JSON array builder
- See Also:
-
object
- Returns:
- the new JSON object builder, empty builders are not ignored
-
object
- Parameters:
ignoreEmptyBuilders-- Returns:
- the new JSON object builder
- See Also:
-
appendValue
- Throws:
IOException
-
appendStringValue
- Throws:
IOException
-
escape
Escape quotation mark, reverse solidus and control characters (U+0000 through U+001F).- Parameters:
value-- Returns:
- escaped value
- See Also:
-