Nov-09-2020, 09:20 PM
I have a problem.
I receive a response in JSON format from a web REST API (which returns me all the values related to the invoices of a shopping center)
Now from all the key-value pairs I have to take all the values with key "total_ invoice" (it is a field that refers to the amount including VAT) and put them in a variable so that we can then add them all and have an overall TOTAL.
p.s I tried to use the module (python) -json- but it converts everything to dictionaries (which how do I manage?).
I mean dictionaries .. in the sense that for each "invoice instance" I create a different dictionary (so I find myself a big dictionary called "all documents" and inside a lot of dictionaries for how many single invoices are
Way out?
I receive a response in JSON format from a web REST API (which returns me all the values related to the invoices of a shopping center)
Now from all the key-value pairs I have to take all the values with key "total_ invoice" (it is a field that refers to the amount including VAT) and put them in a variable so that we can then add them all and have an overall TOTAL.
p.s I tried to use the module (python) -json- but it converts everything to dictionaries (which how do I manage?).
I mean dictionaries .. in the sense that for each "invoice instance" I create a different dictionary (so I find myself a big dictionary called "all documents" and inside a lot of dictionaries for how many single invoices are
Way out?