toResource

Write the JSON to the provided WritableResource using UTF8 encoding.

Parameters

out

the OutputStream to receive the JSON

Throws

on IO error


open fun toResource(out: WritableResource, charset: Charset)

Write the JSON to the provided WritableResource using the given Charset.

Parameters

out

the OutputStream to receive the JSON

charset

the charset to use

Throws

on IO error