I got the following json data to save it in
{
"ACCIONA": {
"ultimo": 126.1,
"%dif": 5.52,
"max": 126.5,
"min": 119.8,
"volumen": "174305",
"efectivo": 21710.34,
"fecha": "07/01/2021",
"hora": "Cierre"
},
"ACERINOX": {
"ultimo": 9.82,
"%dif": 2.96,
"max": 9.84,
"min": 9.55,
"volumen": "1132608",
"efectivo": 10998.42,
"fecha": "07/01/2021",
"hora": "Cierre"
}
}
if I import this data manually to firebase it works perfectly. But if I try to save it with python like this
ref = db.reference('/')
empresasJson = json.dumps(empresasDict, ensure_ascii=True)
ref.set(empresasJson)
It saves the entire json as one line instead of saving it with childs
question from:
https://stackoverflow.com/questions/65617516/save-json-data-in-firebase 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…