This is the Json text. I can get "name,surname and books" as an Array. But the problem is books also is an array.And the content of books is coming in this form ;{"title:heresometext",paragraphs{value1:heresometext,value2:heresometext}} so it is like array in array. Like a parant-child relation. the thing i want to do is to reach thoose value1,value2,value3 strings seperated.
{"data"
[
"name" : "Here some text",
"surname" : "Here some text",
"books" : [
{
"title1" : "Here some text.",
"paragraphs" : [
{
"value1" : "Here some text."
},
{
"value2" : "Here some text."
}
]
},
{
"title2" : "Here some text.",
"paragraphs" : [
{
"value3" : "Here some text.",
"image1" : "Here some text."
},
{
"value4" : "Here some text."
},
{
"value5" : "Here some text."
}
]
}
]
]
}
How can i get them like this form, in a tree form seperated all datas to be able to save them in a DB. any help will be usefull
name: "Here some text",
surname: "Here some text",
books:
- title1 : "Here some text."
-paragraphs:
- value : "Here some text.
- value : "Here some text.
- title2 : "Here some text."
-paragraphs:
- value : "Here some text.
- image : "Here some text.