I am trying to convert a complex map to Json String to pass to my Firebase Realtime Database.
The Map:
_data = {
'name':{
'description':'This is my description',
'price': '700'
},
'name2':{...}
}
What I tried:
json.encode(_data)
This gives me an error:
Converting object to an encodable object failed