I am trying to create customized product order in this I need to store all selected options store in the JSON.
like this
let attr = [{
fabric: 'Bargandi Check',
style:[{
Jacket lapels: 'Notch'
}],
}];
selector image for understanding batter
I want when user select any of these options I will store in JSON when a user updates any of option it will update in the JSON object and when user select the new option it will add in JSON
like this
let attr = [{
fabric: 'Bargandi Check',
style:[{
Jacket lapels: 'Notch',
Lapel width: 'Slim' // this
}],
}];