{ "PrcCfgDetails": [
{
"header_id": "10984299",
"line_id": "1143673632"
},
{
"header_id": "10984299",
"line_id": "1143673633"
}
]
}
I have above response file and I have written next 2 line of code in python. I do see above in response2 but don't know how to write a loop and get the value of header_id and line_id for number of records in response. Can you please help me in writing rest of the code.
response2 = requests.post(OAUTH_ENDPOINT, headers=headers_get, data=python2json)
user_data1 = json.dumps(response2.text)