Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,151,593 members, 7,812,939 topics. Date: Monday, 29 April 2024 at 11:05 PM |
Nairaland Forum / Science/Technology / Programming / Help With This Json Data (569 Views)
Python JSON | Encoding And Decoding JSON Data With Python / How To Parse Json Data In Golang / Help ! Json Data Displays On Browser But Returns Error (500) Via Httpurlconn (2) (3) (4)
Help With This Json Data by arejibadz(m): 7:05pm On Jan 06, 2022 |
please how can i access product.owner.name in javascript keep getting name is undefined in my console "products": [ { "_id": "61d6eb1a0d0cf950fac542cf", "reviews": [], "owner": { "_id": "614f7e7e23c3db9a5202635b", "name": "job robison", "about": "about my self", "__v": 0 }, ] |
Re: Help With This Json Data by EasternActivist: 7:10pm On Jan 06, 2022 |
Products[0].owner.name Not sure though The products variable is an array |
Re: Help With This Json Data by arejibadz(m): 7:44pm On Jan 06, 2022 |
EasternActivist:worked was able to get it how do i loop it there are more owners arrays |
Re: Help With This Json Data by tensazangetsu20(m): 7:56pm On Jan 06, 2022 |
Use map. Products.map((item, index) => (<h1>{item.owner.name}</h1>)) 1 Like |
Re: Help With This Json Data by arejibadz(m): 8:22pm On Jan 06, 2022 |
tensazangetsu20:thanks this worked |
Re: Help With This Json Data by niel63(m): 10:00am On Jan 07, 2022 |
arejibadz: It will bro. And as a matter of fact. Hold on to it as you'll get to see and use it more often in your journey... you no fit escape am Learn am... the three of them especially. Map Filter Reduce |
(1) (Reply)
Simple Programming Codes / Please Help. Experienced Developer Needed / Programming Teacher Needed.
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 18 |