https://kotlinlang.org logo
#random
Title
# random
a

Adam S

03/16/2023, 6:27 PM
I wrote a very hacky way of converting a Kotlinx Serialization JsonObject to an XML string, but then I realised I didn't need it. I didn't want to delete it, and it's not good enough to commit somewhere, so I'm using Slack to make a back up in the slim chance I need it, or maybe someone knows of something better! Comments & criticisms are welcome
here's a more complete runnable example, using Kotlin 1.8 and KxS 1.5.0
the output of the example above
y

Youssef Shoaib [MOD]

03/16/2023, 6:36 PM
btw, Github has gists for these kinds of save-for-later files
👆 1
a

Adam S

03/16/2023, 6:36 PM
it's not even good enough for a gist
shame-shame-shame.gif
3 Views