Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
json and python
#1
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?
Reply


Messages In This Thread
json and python - by rob25111 - Nov-09-2020, 09:20 PM
RE: json and python - by ndc85430 - Nov-10-2020, 06:01 AM
RE: json and python - by buran - Nov-10-2020, 06:34 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020