I am trying to parse a JSON object and am having a difficult time accessing a value in a way that I can then merge with another df. The path for the value is: QueryResponse.Purchase[0].Line[0].Amount
This spec will give me the first value:
glom(data, ('QueryResponse.Purchase', ['Line'], (['0'], ['Amount'])))
but not the Amounts
contained in the other Lines
. I can access the other Amount
values, but then have not been able to figure out how to merge that with my df containing values from the Purchase
level