Json Object Builder
An extremely simple JSON builder.
While this class is neither feature-rich nor the most performant one, it's sufficient enough for its use-case.
Functions
Link copied to clipboard
open fun appendField(key: String, object: Metrics.JsonObjectBuilder.JsonObject): Metrics.JsonObjectBuilder
Appends an object to the JSON.
open fun appendField(key: String, values: Array<Metrics.JsonObjectBuilder.JsonObject>): Metrics.JsonObjectBuilder
Appends an object array to the JSON.
Appends an integer field to the JSON.
Appends an integer array to the JSON.
Appends a string field to the JSON.
Appends a string array to the JSON.
Link copied to clipboard
Appends a null field to the JSON.
Link copied to clipboard
Builds the JSON string and invalidates this builder.