Json reading | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Json reading

my array is inside the nested Json object and it looks like Sah : [ "sah" ] how to read ?

25th Jan 2019, 12:20 PM
Sahana Marathe
Sahana Marathe - avatar
2 Answers
0
Can you show us you code, please?
25th Jan 2019, 12:35 PM
James
James - avatar
- 1
Hi Sahana Marathe, To get a value you need to declare the object name, propertie name and then the value of that propertie. When you need to get the whole propertie array, then use a for.. in loop. Have a look at this snippet👍😊 https://code.sololearn.com/WmuaYO4IYbgd/?ref=app
25th Jan 2019, 2:30 PM
🌴Vincent Berger🌴
🌴Vincent Berger🌴 - avatar