Hi I have below problem set. I am not able to generate corresponding jolt spec. If you can help me. Thanks!!
---INPUT---
[
{
"productId":"1",
"productName":"ELECTRONICS",
"subProductId":"_1"
"subProductName":"MOBILE"
},
{
"productId":"1",
"productName":"ELECTRONICS",
"subProductId":"_3",
"subProductName":"TV"
},
{
"productId":"2",
"productName":"ELECTRICAL",
"subProductId":"_2",
"subProductName":"FAN"
}
]
Hi I have below problem set. I am not able to generate corresponding jolt spec. If you can help me. Thanks!! ---INPUT--- [ { "productId":"1", "productName":"ELECTRONICS", "subProductId":"_1" "subProductName":"MOBILE" }, { "productId":"1", "productName":"ELECTRONICS", "subProductId":"_3", "subProductName":"TV" }, { "productId":"2", "productName":"ELECTRICAL", "subProductId":"_2", "subProductName":"FAN" } ]
---DESIRED OUTPUT --- [ { "productId":"1", "productName":"ELECTRONICS", "subProducts":[ { "subProductId":"_1", "subProductName":"MOBILE" }, { "subProductId":"_3", "subProductName":"TV" }
]