Escaping Special Characters in Kotlin (and Java)

Some characters are not supported in json. Compared to xml, json does not have a CDATA alternative, so you'll have to encode this yourself.…