Select from following answers:- { "a" : 1, "b" : { "b" : 1, "c" : "test", "d" : "json", "e" : [1, 2, 4] } }

- { "a" : 1, "b" : { "b" : 1, "c" : "test", "d" : "json", "e" : [1, 2,3, 4] } }
- { "a" : 1, "b" : { "b" : 1, "c" : "test", "d" : "json", "e" : [1, 4,2] } }
- { "a" : 1, "b" : { "b" : 1, "c" : "json", "d" : "test", "e" : [1, 2, 4] } }
- All Above
If we observe correctly, under the root tag
b , the child are b,c,d,e and the e child tag as repeated 3 times with values 1,2,4. This indicates that the JSON will be
"e" : [1, 2, 4]
which is a collection. The rest is an assured JSON key value pair
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator