Json Array as following is easy to parse,
{
"movieCategories": [
"a" : "Animation",
"b" :"Romance",
"c" :"Science Fiction"
"d" : "Western"
]
}
Now,I have a Json response as following which is stored in movies.json file.
{
"movieCategories": [
"Animation",
"Romance",
"Science Fiction",
"Western"
]
}
I am not sure how to parse the above json array. Kindly help.
Thank you.
Assume
var test = {
"movieCategories": [
"Animation",
"Romance",
"Science Fiction"
"Western"
]
}
then
test.movieCategories[0] // Will be Animation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With