I have one table and button. If I click on a button I need to generate table data in JSON format with one new key/value pair (the value is generated dynamically). The JSON I'm getting like this:
[{"id":"3","Test1":"Cartman","Test2":"123"},{"id":"3","Test1":"abc","Test2":"456"}]
I'm expecting JSON like this:
[{"sampledata":"123","id":"3","Test1":"Cartman","Test2":"123"},{"sampledata":"123","id":"3","Test1":"abc","Test2":"456"}]
I tried to add this dynamically but the data is not populated.