kotlin jsonobject from string

JavaScript
val data = JSONObject("""{"name":"test name", "age":25}""")
Source

Also in JavaScript: