Json

object Json

The JSON the load generator needs without a library: it reads a field's first occurrence out of an answer, and writes its results from maps, lists, strings, numbers and booleans.

Functions

Link copied to clipboard
fun long(json: String, field: String): Long?

The first integer value of field in json, or null.

Link copied to clipboard
fun string(json: String, field: String): String?

The first string value of field in json, or null.

Link copied to clipboard
fun write(value: Any?): String

value as JSON, indented by two spaces per level.