Answer the question
In order to leave comments, you need to log in
How to merge a struct within a struct?
Here is such a structure:
[
{
"cat_name":"Распродажа",
"sub_cats":[
{
"cat_name":"aaaaa",
"goods_inside":[
"00-00004044",
"00000000325"
]
},
{
"cat_name":"bbbbbb",
"goods_inside":[
"00-00001816"
]
}
]
},
{
"cat_name":"aaaaa",
"goods_inside":[
"00-00003108"
]
},
{
"cat_name":"bbbbbb",
"goods_inside":[
"00-00001814",
"00-00004288"
]
}
]
[
{
"cat_name":"aaaaa",
"goods_inside":[
"00-00003108", "00-00004044", "00000000325"
]
},
{
"cat_name":"bbbbbb",
"goods_inside":[
"00-00001814", "00-00004288", "00-00001816"
]
}
]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question