[PDB Tech] pdb, PUT, python, fail - or maybe stupidity...
Elmar K. Bins
elmi at 4ever.de
Tue Jan 28 04:48:07 PST 2020
Hi Stefan,
stefan at 20c.com (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.
More information about the Pdb-tech
mailing list