to

infix fun String.to(value: Any?)

Set a simple property value.


infix fun String.to(block: JsonObjectBuilder.() -> Unit)

Add a nested object using 'to' syntax.

Example:

"degree" to {
"type" to "BachelorDegree"
"name" to "Bachelor of Science"
}