Open DhanushQH opened 2 years ago
I want to merge given JSON object into existing JSON object using C++. My JSON object contains Array elements
This is my existing JSON object : { "FeatureReports": { "ProductInformation": { "ProductName": "E_Portal" }, "Reports": [ { "user_purchase": [ { "sr_no": 1, "ItemName": "TV" }, { "sr_no": 2, "ItemName": "AC" } ] }, { "User_Sell": [ { "sr_no": 1, "ItemName": "Refrigerator" } ] } ] } } Now, I want to add/update user_purchase array elements. Steps need to check :
I want to merge given JSON object into existing JSON object using C++. My JSON object contains Array elements
This is my existing JSON object : {
"FeatureReports": { "ProductInformation": { "ProductName": "E_Portal" }, "Reports": [ { "user_purchase": [ { "sr_no": 1, "ItemName": "TV" }, { "sr_no": 2, "ItemName": "AC" } ] }, { "User_Sell": [ { "sr_no": 1, "ItemName": "Refrigerator" } ] } ] } } Now, I want to add/update user_purchase array elements. Steps need to check :