'how to render nested json object string in react
Json Object i want to render idata and mdata author: "zamiatatest1" category: "balls" container: [] containerf: [] id: "100000000079734" idata: "{"radius": 2, "weigh": 5, "material":"rubber", "name":"baseball"}" mdata: "{"color":"white", "decay": 99, "img":"https://i.imgur.com/QoTcosp.png"}" owner: "zamiatatest1"
'''
{
myData.map((data , i) =>
<div>
{data.id}{" "}
{data.author}{" "}
{data.category}{" "}
{data.mdata}{" "}
</div>
)
}
'''
Getting output 100000000079734 zamiatatest1 balls {"color":"white", "decay": 99, "img":"https://i.imgur.com/QoTcosp.png"} like this
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
