Join Slack
Communities
Powered by
How do I force Gson lib to parse this simply to a ...
# android
i
iex
01/17/2020, 5:26 PM
How do I force Gson lib to parse this simply to a string primitive?
JsonParser().parse("2020-01-17T18:21:15+0100")
o
Olenyov Kirill
01/17/2020, 5:39 PM
Can you extend? What do you expect as result?
j
jw
01/17/2020, 6:32 PM
Wrap it on quotes
☝️ 2
jw
01/17/2020, 6:32 PM
What you wrote isn't valid JSON
i
iex
01/20/2020, 9:28 PM
ahh cool thanks
iex
01/20/2020, 9:28 PM
JsonPrimitive
constructor also worked
Open in Slack
Previous
Next