I'm having so trouble deserializing a JSON stream that contains an array as the root:
[
{
"object": {
"property1":"000000",
"property2":"000000"
}
},
{
"object": {
"property1":"000000",
"property2":"000000"
}
}
]
I tried using JSON.deserializeUntyped and assigning to a Map, but I keep getting a "invalid conversion runtime type LIST to MAP". This method worked fine when I was dealing with single JSON objects, but loading multiples into an array trips this error. Should I be using a different type for deserialization?
property2
. (I deleted my answer to add this comment)