android – How to parse this kind of json with gson in Andorid program?-ThrowExceptions

Exception or error:

The json data is below:

{
  "log_id": 726809204813418800,
  "words_result": {
    "color": "blue",
    "number": "渝FCW090",
    "probability": [
      0.9005717039108276,
      0.9010966420173645,
      0.9018148183822632,
      0.9011690616607666,
      0.9016562104225159,
      0.9021140933036804,
      0.9022263884544373
    ],
    "vertexes_location": [
      {
        "y": 545,
        "x": 100
      },
      {
        "y": 554,
        "x": 581
      },
      {
        "y": 695,
        "x": 577
      },
      {
        "y": 688,
        "x": 98
      }
    ]
  }
}

How sould I parse it with gson tool? I’m new to android, is anybody know how to do it? thanks.

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *