php – How to read this example of Json correctly?

I have difficulties reading this Json because it has, in some statements, several addresses, example of picture below:

insert the description of the image here

Whatever it is, anyone can help me, I have to load AddressMain or AddressMain, as shown in the picture above.

paths:
object-> Result-> 0-> CreditData-> 0-> Address-> 0-> AddressMain
object-> Result-> 0-> CreditData-> 0-> Addresses-> 1-> AddressMain

How did I put my code:

Result-> as $ data) {
echo
Country: & # 39; $ Data-> CreditData-> -> Addresses-> -> Country; echo
& # 39 ;; } ?>

My mistake is in the "way" the "0", "1" break me … if someone can give me a hint I thank