Facility Control

 View Only
  • 1.  Parse JSON sub categories?

    Posted 02-15-2024 16:07

    Hello, 

    I'm trying to create a table in dashboard parsed from Json.  Found some topics about how to parse, but all are attributes from the parent results.  I'm trying to get results from the children.  Below is a sample json.  Trying to create an array table with Location, Name, Code.

    Thank you for your help in advance. 

    {
      "generated": "2024-02-15T20:58:02.3033664Z",
      "league": {
        "name": "Test Sport League",
        "sport": "",
        "code": "TSL",
        "logo": {
          "media": null
        },
        "datafeedChar": null,
        "datafeedId": null,
        "modifiedDate": "2024-02-15T15:56:53-05:00",
        "isHomeTeamFirst": false,
        "teams": [
          {
            "name": "TeamA",
            "code": "CodeA",
            "location": "LocationA",
            "fullName": "LocationA TeamA",
            "logo": {
              "media": null
            },
            "datafeedChar": null,
            "datafeedId": null,
            "leagueTeamCode": "TSL/CodeA",
            "modifiedDate": "2024-02-15T15:57:09-05:00"
          },
          {
            "name": "TeamB",
            "code": "CodeB",
            "location": "LocationB",
            "fullName": "LocationB TeamB",
            "logo": {
              "media": null
            },
            "datafeedChar": null,
            "datafeedId": null,
            "leagueTeamCode": "TSL/CodeB",
            "modifiedDate": "2024-02-15T15:57:17-05:00"
          },
          {
            "name": "TeamC",
            "code": "CodeC",
            "location": "LocationC",
            "fullName": "LocationC TeamC",
            "logo": {
              "media": null
            },
            "datafeedChar": null,
            "datafeedId": null,
            "leagueTeamCode": "TSL/CodeC",
            "modifiedDate": "2024-02-15T15:57:28-05:00"
          }
        ]
      }
    }




    ------------------------------
    Alain Savoie
    ------------------------------


  • 2.  RE: Parse JSON sub categories?

    Posted 02-16-2024 12:49

    N/M.  I figured it out. 



    ------------------------------
    Alain Savoie
    ------------------------------