You might have come across a gson exception that says "Expected a string but was BEGIN_OBJECT". This means that you are parsing the respo…
Before we begin, keep this in mind begin_array means the json response is an array which will look something like this [{},{},..] begin_object…
We often come across situations where our json response contains attributes that switches its type dynamically. For example , if a particular k…