I am trying to push
data.push({\"country\": \"IN\"});
as new id and value to a json string. but it gives the following error
make sure you push into an Array only and if their is error like Uncaught TypeError: data.push is not a function** then check for type of data you can do this by consol.log(data) hope this will help