Array response parameter sent from backend arrives as object in the browser
This happens when the array doesn't have keys starting from 0
for example
[
2 => "Something"
4=> "Something else"
]
will be interpreted as an object
and
[
0 => "Something"
1=> "Something else"
]
will be interpreted as an array
Comments
Post a Comment