I have this json file.
{
"entityId": "PROCESS_1234",
"displayName": "Windows System",
"firstSeenTms": 1619147697131,
"lastSeenTms": 1653317760000,
"properties": {
"detectedName": "Windows System",
"bitness": "32",
"metadata": [],
"awsNameTag": "Windows System",
"softwareTechnologies": [
{
"type": "WINDOWS_SYSTEM"
}
],
"processType": "WINDOWS_SYSTEM"
}
}
I need to extract entityId": "PROCESS_1234" and "properties": { "detectedName": "Windows System" as a data frame. The data frame needs to look like this:
entityId detectedName
PROCESS_1234 Windows System
I have tried this:
print(resp2['entityId']['properties'][0]['detectedName'])
I get this error:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-6-09b87f04b95e> in <module>
----> 1 print(resp2['entityId']['properties'][0]['detectedName'])
TypeError: string indices must be integers
entityId, the value is now"PROCESS_1234"so when you select "property" it is not valid for strings