There are Arrays in Arrays:
Array
(
[0] => Array ( [0] => v1 [1] => v2 [2] => v3 )
[1] => Array ( [0] => v1 [1] => v2 [3] => v3 )
[2] => Array ( [0] => v1 [1] => v2 [10] => v3 )
[4] => Array ( [0] => v1 [1] => v2 [3] => v3 )
)
After json_encode
on andorid I get the following:
{
«0»: [ «v1», «v2», «v3» ],
«1»: { «0»:«v1», «1»:«v2», «3»:«v3», },
«2»: { «0»:«v1», «1»:«v2», «10»:«v3» },
«4»: { «0»:«v1», «1»:«v2», «3»:«v2» }
}
JSONArray jList = jb.getJSONArray(response); //exception is not array
Is there a good way to parse this as Array[Array[]]
on Android?
«
/»
characters. There's something really odd going on there, but I can't see it from what you've posted.json_decode
won't put those«
/»
characters in there, so I'm wondering where they've come from. They're obviously not standard json. Standard json should have"
characters for the quotes.