at

inline fun <R> at(key: String, action: JSONWriter.() -> R): R

Write the given non-null String as the name of an entity, then evaluate the action, generally to write the associated value.

Return

The value, if any, returned by the action.

Parameters

R

The type of value, if any, returned by the action.

key

The key String to write first.

action

The action to invoke to do additional writing.