We are trying to retrieve data from FireBase as 2D array but we are getting miss-matched data types in JSON despite everything is set up the same way.
Data recieved:
[
{"0":24, "1":74, "2":5, "8":5},
{"0":45, "1":857, "10":7, "2":42, "3":8, "5":89, "55":98},
[103, null, null, 195],
null,
null,
null,
{"0":84, "5":854, "6":425},
{"6":8, "7":578},
[0, 1],
{"8":8, "9":9},
[0, 1, 2, 3]
]
Data expected:
[
[24, 74, 5, 5],
[45, 857, 7, 42, 8, 89, 98],
[103, null, null, 195],
null,
null,
null,
[84, 854, 425],
[8, 578],
[0, 1],
[8, 9],
[0, 1, 2, 3]
]
Firebase setup:
We were wondering if there is any way to retrieve data from Firebase so that we are using the same type, and if not, how do we convert it to desired output in C# the most efficient way ?
