JsonObjectBuilder

JSON object builder

Functions

Link copied to clipboard
@NotNull
open fun build(): @NotNull JsonObject
Builds JSON object
Link copied to clipboard
@NotNull
open fun builder(): @NotNull JsonObjectBuilder
Creates builder
Link copied to clipboard
@NotNull
open fun jsonArray(@NotNull name: @NotNull String, @Nullable array: @Nullable JsonArray): @NotNull JsonObjectBuilder
Adds JSON array
Link copied to clipboard
@NotNull
open fun jsonObject(@NotNull name: @NotNull String, @Nullable jsonObject: @Nullable JsonObject): @NotNull JsonObjectBuilder
@NotNull
open fun jsonObject(@NotNull name: @NotNull String, @NotNull consumer: @NotNull Consumer<JsonObjectBuilder>): @NotNull JsonObjectBuilder
Adds JSON object
Link copied to clipboard
@NotNull
open fun property(@NotNull name: @NotNull String, @NotNull property: @NotNull Boolean): @NotNull JsonObjectBuilder
@NotNull
open fun property(@NotNull name: @NotNull String, @NotNull property: @NotNull Number): @NotNull JsonObjectBuilder
@NotNull
open fun property(@NotNull name: @NotNull String, @NotNull property: @NotNull String): @NotNull JsonObjectBuilder
Adds JSON property