Forum Discussion

vgautam64's avatar
vgautam64
New Contributor III
2 years ago
Solved

Reduce an array of objects into a single object with the sum of fields as the result

I have an array of the following form: I want to convert this array of objects into a single object that has the same fields along with Debit_Amount and Credit_Amount fields summed up. ...
  • ptaylor's avatar
    10 months ago

    That's the only way since your string is definitely not valid JSON. You need it to look like this:

    {"language": "Tamil", "taskId": 123}