I am using firebase realtime database, and when I try and upload a json object that has an array as a value, it gets converted. Example: What I upload:
{
"obj": [var1,var2,var3]
}
Firebase turns that into:
{
"obj": {
0: var1,
1: var2,
2: var3
}
}
I have no idea why this happens and it really messes with my code. If there is a way to work around this that would be great.