Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
220 views
in Technique[技术] by (71.8m points)

PHP -> Json, access to nested Arrays

I am trying to get access to a nested information coming from json using PHP. What I have got so far: the following Json

{
  "Response": {
    "MetaInfo": {
      "Timestamp": "2021-02-05T16:59:45.379+0000"
    },
    "View": [
      {
        "_type": "SearchResultsViewType",
        "ViewId": 0,
        "Result": [
          {
            "Relevance": 1,
            "MatchLevel": "city",
            "MatchQuality": {
              "City": 1
            },
            "Location": {
              "LocationId": "NT_ZJPKK1T.yfVXpHzv5zfPOC",
              "LocationType": "point",
              "DisplayPosition": {
                "Latitude": 48.13642,
                "Longitude": 11.57755
              },
              "NavigationPosition": [
                {
                  "Latitude": 48.13642,
                  "Longitude": 11.57755
                }
              ],
              "MapView": {
                "TopLeft": {
                  "Latitude": 48.24824,
                  "Longitude": 11.36084
                },
                "BottomRight": {
                  "Latitude": 48.06175,
                  "Longitude": 11.72291
                }
              },
              "Address": {
                "Label": "München, Bayern, Deutschland",
                "Country": "DEU",
                "State": "Bayern",
                "County": "München (Stadt)",
                "City": "München",
                "PostalCode": "80331",
                "AdditionalData": [
                  {
                    "value": "Deutschland",
                    "key": "CountryName"
                  },
                  {
                    "value": "Bayern",
                    "key": "StateName"
                  },
                  {
                    "value": "München (Stadt)",
                    "key": "CountyName"
                  }
                ]
              }
            }
          }
        ]
      }
    ]
  }
}
question from:https://stackoverflow.com/questions/66067687/php-json-access-to-nested-arrays

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...