Skip to content

Instantly share code, notes, and snippets.


PatilShreyas/StringTemplJson.kt.diff Secret

Last active Dec 29, 2020
What would you like to do?
fun main() {
- val json = "{\"name\": \"John Doe\", \"age\": 200}"
+ val json = """{"name": "John Doe", "age": 200}"""
println(json) // prints: {"name": "John Doe", "age": 200}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment