diff options
Diffstat (limited to 'guide/example/example-json-22.kt')
-rw-r--r-- | guide/example/example-json-22.kt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/guide/example/example-json-22.kt b/guide/example/example-json-22.kt new file mode 100644 index 00000000..e64ab06f --- /dev/null +++ b/guide/example/example-json-22.kt @@ -0,0 +1,10 @@ +// This file was automatically generated from json.md by Knit tool. Do not edit. +package example.exampleJson22 + +import kotlinx.serialization.* +import kotlinx.serialization.json.* + +fun main() { + // caution: creating null with JsonUnquotedLiteral will cause an exception! + JsonUnquotedLiteral("null") +} |