I realized that I get a 400 HTTP Bad Request from the server when I click on some JSON data in the Firebase storage, whose keys are floating point numbers. Here is the answer I received:
{"error" : "Invalid data; couldn't parse JSON object, array, or value. Perhaps you're using invalid characters in your key names."}
I sent the following data:
'[{"36.5": "4050952597550"}, {"41.5": "4050952597628"}]'
I believe this is a perfectly valid JSON string in Python, because I don't get errors when encoding / decoding.
import json v = [{u'36.5': u'4050952597550'}, {u'41.5': u'4050952597628'}] print v == json.loads(json.dumps(v)) True
Is this some kind of mistake or am I missing something?
ozgur source share