because of my lack of experience in data processing, I will be confused when I encounter similar problems. I hope God can help me answer my question. Thank you.
is described as follows:
1. At present, there are more than N json data, which are returned from the interface, and do not know how much this N is
2. The returned JSON data have one thing in common, that is, the title is the same, while different title need to be merged into another new data, as follows
the title of 4 of the five JSON, in the figure is consistent, and only the last one is independent. The final data structure is as follows
[
{
title: "",
details: [
{
page: {
from: 28,
to: 29
},
time: "2018-3-12 15:45",
type: ""
},
{
page: {
from: 28,
to: 29
},
time: "2018-3-12 15:45",
type: ""
},
{
page: {
from: 28,
to: 29
},
time: "2018-3-12 15:45",
type: ""
},
],
snippet: [
"",
"",
...
]
},
{
title: " (xiao)",
details: [
{
page: {
from: 2770,
to: 2771
},
time: "2018-5-10 10:25",
type: ""
}
],
snippet: [
""
]
}
]
data processing Xiaobai thanks God for his reply. I hope he won"t complain about me. Thank you