I'm employing Gson
to deserialize my payload from server. Payload contains "jsonResult"
JSONObject
whose value is string that contains \"
. So, I know the data structure of "jsonResult"
and created model classes for underlying data. What I wonder is that Gson will deserialize this string with escape (\"
) characters or it will fail.
Asked
Active
Viewed 213 times
0

Farid
- 2,317
- 1
- 20
- 34
-
It's just a string, not an object, so it'll serialize as a string – OneCricketeer May 20 '17 at 19:47
-
Any way to convert it to Object before being deserialized in Android? – Farid May 20 '17 at 19:48
-
That depends on how you acquired that data – OneCricketeer May 20 '17 at 20:02