I actually receive this format of JSON format:
{ "bank": "CityBank", "sum": "500" }, { "bank": "WPBank", "sum": "700" }
But is can't be parsed without [] brackets. The result should be:
[{ "bank": "CityBank", "sum": "500" }, { "bank": "WPBank", "sum": "700" }]
How to add these brackets in JS?
let parsed = JSON.parse(`[${notJSON}]`);