I have a backend response, which is just a plain s...
# serialization
l
I have a backend response, which is just a plain string (not wrapped in a JSON object, so like this:
"12345"
). Do I need to configure something special in the Kotlinx Serialization
Json
object for it to be parsed?
e
To be parsed from json, just
decodeFromString<String>()
, quoted string is valid json
l
Thank you, it also worked like this in tests.
Yes, it looks like my fears were based on the pre-2014 specification: https://stackoverflow.com/a/7487892/4990683