skip to Main Content

Json – Fetching the value from the key in Python's dict

I am fetching 'value' from 'key' in JSON but I do not know why I cannot fetch the target information. Code below import json import requests #Person's ID id=1194452 #Url info=requests.get(f'https://api.brokercheck.finra.org/search/individual/{id}?hl=true&includePrevious=true&sort=bc_lastname_sort+asc,bc_firstname_sort+asc,bc_middlename_sort+asc,score+desc&wt=json') #convert to JSON x=info.json() #Value print(x["firstName"]) The following is…

VIEW QUESTION

Json manipulation and conversion in Java

I have an input json like: { "Employee": [ { "employee1.id": 1 }, { "employee1.name": "John" }, { "employee1.address.street": "main street" }, { "employee1.address.pin": "123456" }, { "employee2.id": 2 }, { "employee2.name": "Mike" }, { "employee2.address.street": "51 street" }, {…

VIEW QUESTION
Back To Top
Search