i am now trying to parse AWS http logs in python.I got some logs as below.i would like to convert it to dic.but it seems not standard json because some keys without "".i tried to use json5 but also failed.how can i made it?
{
resource: '',
path: '',
httpMethod: 'POST',
headers: {
accept: '*/*',
},
multiValueHeaders: {
accept: [ '*/*' ],
'accept-encoding': [ 'gzip, deflate, br' ],
'accept-language': [ 'zh-CN,zh-Hans;q=0.9' ]
},
queryStringParameters: {},
multiValueQueryStringParameters: null,
pathParameters: null,
stageVariables: null,
requestContext: {
resourceId: '',
resourcePath: '',
identity: {
cognitoIdentityPoolId: null,
accountId: null,
cognitoIdentityId: null,
caller: null,
sourceIp: '',
principalOrgId: null,
accessKey: null,
cognitoAuthenticationType: null
},
domainName: '',
apiId: ''
},
body: [Object: null prototype] { },
isBase64Encoded: false
}