https://kotlinlang.org logo
#getting-started
Title
# getting-started
n

neerav

02/07/2023, 5:15 AM
Hey Guys, coming up with very basic question! Which is preferable way or package should be used to convert json string to json object/array ?
a

AndreyVanDenHaag

02/07/2023, 5:25 AM
n

neerav

02/07/2023, 5:28 AM
How can we build json object without de/serialize? eg. For org.json
Copy code
val json = JSONObject()
json.put("key","value")
a

AndreyVanDenHaag

02/07/2023, 5:30 AM
You simple example can also be done with Map<String, String>
👍 1
4 Views