Answers for "expected begin_object but was string"

0

expected begin_object but was string

Even without seeing your JSON string you can tell from the error message that it is not the correct structure to be parsed into an instance of your class.

Gson is expecting your JSON string to begin with an object opening brace. e.g.

{
But the string you have passed to it starts with an open quotes

"
Posted by: Guest on March-25-2021

Code answers related to "expected begin_object but was string"

Browse Popular Code Answers by Language