1

I am using retrofit 2.x.I have to parse a json response whose structure is as follows:

  • ->query(object)
    • -->results(object)
      • --->Scorecard(can be list or object)
        • ---->past_ings(can be list or object)
        • ---->result(can be primitive or object)

here is the link for the json test response that contains all the scenarios listed above-json

Please suggest a way to do so:)

mandroid
  • 11
  • 1
  • I suggest looking at http://stackoverflow.com/questions/7668507/gson-handle-object-or-array. It answers many of your questions. – Adam Peck Feb 14 '16 at 22:46

0 Answers0