Skip to content
Advertisement

How to access a json child in php respect validation?

I’m trying to validate the following json file but I can’t find the way to access the “Address” child, how should I do it? Everything goes fine until it tries to access the “address” field.

Json:

JavaScript

Code:

JavaScript

Advertisement

Answer

That is the way to access the child of the json:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement