a = [
        {"1":
            {
            "name": ["Ram", "Kumar", "Shrestha"],
            "contact":
                {
                "home":["01-556677"],
                "office":["01-665577"]
                },
            },
            "friends":[
                {"2":
                    {
                    "name": ["Shyam", "", "Joshi"],
                    "contact":
                        {
                        "home":["01-999999"],
                        "office":[""]
                        }
                    }
                }
            ]
        },
    ]
# Your name is Ram Kumar Shrestha
# Your home contact is 01-556677
# Your office contact is 01-66557

fullname = a[0].get("1").get("name")
print(f"Your name is {' '.join(fullname)}.")
print(a[0].get("1").get("contact").get("home")[0])
print(a[0].get("1").get("contact").get("office")[0])

friendsList= a[0].get("1").get("friends"[0])
print(f"Your friend name is {friendsList}")
c5d98ebd52ccc917c9de7e31e1e11f4d4b9d2628
<mask token>

<mask token>
print(f"Your name is {' '.join(fullname)}.")
print(a[0].get('1').get('contact').get('home')[0])
print(a[0].get('1').get('contact').get('office')[0])
<mask token>
print(f'Your friend name is {friendsList}')

a = [{'1': {'name': ['Ram', 'Kumar', 'Shrestha'], 'contact': {'home': [
    '01-556677'], 'office': ['01-665577']}}, 'friends': [{'2': {'name': [
    'Shyam', '', 'Joshi'], 'contact': {'home': ['01-999999'], 'office': [''
    ]}}}]}]
fullname = a[0].get('1').get('name')
print(f"Your name is {' '.join(fullname)}.")
print(a[0].get('1').get('contact').get('home')[0])
print(a[0].get('1').get('contact').get('office')[0])
friendsList = a[0].get('1').get('friends'[0])
print(f'Your friend name is {friendsList}')

a = [
        {"1":
            {
            "name": ["Ram", "Kumar", "Shrestha"],
            "contact":
                {
                "home":["01-556677"],
                "office":["01-665577"]
                },
            },
            "friends":[
                {"2":
                    {
                    "name": ["Shyam", "", "Joshi"],
                    "contact":
                        {
                        "home":["01-999999"],
                        "office":[""]
                        }
                    }
                }
            ]
        },
    ]
# Your name is Ram Kumar Shrestha
# Your home contact is 01-556677
# Your office contact is 01-66557

fullname = a[0].get("1").get("name")
print(f"Your name is {' '.join(fullname)}.")
print(a[0].get("1").get("contact").get("home")[0])
print(a[0].get("1").get("contact").get("office")[0])

friendsList= a[0].get("1").get("friends"[0])
print(f"Your friend name is {friendsList}")