Hi Stefan,
[email protected] (Stefan Pratter) wrote:
> print(r.json())
Ah, I've been looking for that; now it just tells me...
{'meta': {'error': 'JSON parse error - Expecting value: line 1 column 1 (char
0)'}}
Ok, I've now tried putting data=...:
- Only the changes as a simple <dict>.
- The entire object (from data[0]) as a simple <dict>.
- The entire object (from data[0]) as {'data': [ <dict> ] }
- The entire object (from data[0]) plus empty meta as {'data': [ <dict> ],
'meta': {} }
I'm always getting the JSON parse error.
Am I missing a conversion step somewhere?
json.dumps() looks alright in all cases.
- Elmar.
_______________________________________________
Pdb-tech mailing list
[email protected]
https://lists.peeringdb.com/cgi-bin/mailman/listinfo/pdb-tech