#1 2015-06-03 17:44:23

jars
Member
Registered: 2015-05-15
Posts: 29

Retrieve data from a json multi array

Hi guys.
I need to show data from a received json with nested arrays and I have no idea how to do that, this is an json example:
Thanks in advance for any help.

[
    {
      "AgentInfo": {
        "ID": 5,
        "Type": 2,
        "UserName": "agente2",
        "FirstName": "Ariel",
        "LastName": "Ortego",
        "Email": "",
        "Settings": {
          "TecnoVozID": "5"
        }
      },
      "CurrentWork": {
        "MessageStats": {
          "AssignedMessages": 0,
          "RepliedMessages": 0,
          "DiscardedMessages": 0,
          "ReturnedToQueueMessages": 0,
          "UnassignedMessages": 0
        },
        "TimeStats": {
          "TotalAuxTime": 0,
          "AuxTime": [
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "AvailTime": 0,
          "WorkingTime": 0,
          "UnreadTime": 0
        }
      },
      "DayWork": {
        "MessageStats": {
          "AssignedMessages": 0,
          "RepliedMessages": 0,
          "DiscardedMessages": 0,
          "ReturnedToQueueMessages": 0,
          "UnassignedMessages": 0
        },
        "TimeStats": {
          "TotalAuxTime": 0,
          "AuxTime": [
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "AvailTime": 0,
          "WorkingTime": 0,
          "UnreadTime": 0
        }
      }
    }
]

Offline

#2 2015-06-03 20:52:53

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: Retrieve data from a json multi array

Show where?

The easiest may be to define a record and a dynamic array.

Offline

Board footer

Powered by FluxBB