writeJson

inline fun <V> writeJson(path: ResourcePath<ResourceType.JsonFile>, value: V, json: Json = Json)

Serializes value to JSON using json and writes it to the file under path, creating parent directories if necessary.