put

fun put(key: Key, document: Variant)

Commits document under key, replacing any current version.


fun put(key: Key, json: String)

Parses json and commits it under key.

The overload that makes the first line of a program short. Identical to parsing with Variant.fromJson and calling the other put; malformed input is rejected with a byte offset, line and column before anything is written.