Add JSON Object to an Existing File on Disk

Describe the problem/error/question

This workflow is called whenever I want to add an item to the cart. The cart is a file on disk. My problem is with data formatting. I’m looking for:

{
    {
        "itemId": "202590-19321249",
        "name": "Areen Large Eggs Tray 30 PCS",
        "price": "22.95"
    },
    {
        "itemId": "202590-19321249",
        "name": "Areen Large Eggs Tray 30 PCS",
        "price": "22.95"
    }

}

I’m getting:

[
    {
        "itemId": "202590-19321249",
        "name": "Areen Large Eggs Tray 30 PCS",
        "price": "22.95"
    },
    {
        "data": [
            {
                "itemId": "202590-19321249",
                "name": "Areen Large Eggs Tray 30 PCS",
                "price": "22.95"
            }
        ]
    }
]

Please share your workflow

Hey @Bady hope all is good.

See if this helps you to combine the outputs

Final output:

1 Like

Thanks @jabbson

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.