Join Slack
Powered by
Hey Guys, coming up with very basic question! Whic...
# 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
https://kotlinlang.org/docs/serialization.html#formats
thank you color
1
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
https://kotlinlang.org/docs/data-classes.html
AndreyVanDenHaag
02/07/2023, 5:53 AM
You simple example can also be done with Map<String, String>
👍 1
6
Views
Open in Slack
Previous
Next