Forum Discussion
My output looks like this: every “Infos” has its own manufacturer object. Is it possible to group/map it somehow
so there will be one Manufacturer field for x objects? in this case only one manufacturer for X3 and X5 type
[
{
"Manufacturer": BMW
"Infos":
[
{
"type":"M3"
"Fuel":"petrol"
}
]
"Manufacturer": BMW
"Infos":
[
{
"type":"M5"
"Fuel":"petrol"
}
]
}
{
"Manufacturer": Mercedes
"Infos":
[
{
"type":"GLS"
"Fuel":"diesel"
}
]
}
]
i would like to group it into/with Manufacturer so i will have only one Manufacturer for x types
[
{
"Manufacturer": BMW
"Infos":
[
{
"type":"M3"
"Fuel":"petrol"
}
{
"type":"M5"
"Fuel":"petrol"
}
]
}
{
"Manufacturer": Mercedes
"Infos":
[
{
"type":"GLS"
"Fuel":"diesel"
}
]
}
]
do i need group by field or structure snap ?
thank you
Aleksandar_A
3 years agoContributor III
Hi, can you please provide me the exact valid JSON?
This is not a challenge… just sharing an example 🙂
Community.9634.slp (3.6 KB)I believe an expression file arrow function is the right way to go
I agree completely.
Related Content
- 2 years ago
- 3 years ago
- 4 years ago