ios - Get JSON array without dictionary? -
i've got array in json i'm trying receive. can find examples showing how kind of array:
[ { "text": "pain intensity", "question_number": 1, "id": 1 },
but array in format:
[ [1, "http://youtu.be/ow9mji25fye", "video", "text here"], [2, "http://gardenwebs.net/butchart.gardens.jpg", "image", "text here"] ]
is there way this? or need change json?
thinking have assigned value variable x,
in first way, value, "pain intensity"
write, x[0].text
in second method, value 1
, x[0][0]
, "[http://youtu.be/ow9mji25fye", "video", "text here"]
have write x[0][1]
first type written in mixture of array , object. 2nd method pure array.
but note both json.
Comments
Post a Comment