tornadofx / tornadofx / javax.json.JsonStructure / save

save

fun JsonStructure.save(output: OutputStream): <ERROR CLASS>

Save this Json structure (JsonObject or JsonArray) to the given output stream and close it.

fun JsonStructure.save(output: Path, vararg options: OpenOption = arrayOf(CREATE, TRUNCATE_EXISTING)): <ERROR CLASS>

Save this Json structure (JsonObject or JsonArray) to the given output path.