tornadofx / tornadofx / javax.json.JsonStructure

Extensions for javax.json.JsonStructure

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.

toPrettyString fun JsonStructure.toPrettyString(): String
toString fun JsonStructure.toString(vararg options: String): String