I need to create a json payload to send data in this format
{
"ids":[
"6375502",
"637550",
"6376391"
],
"type":"MrnId",
"extId":"104DC758-25AE-47A8-931A-DD9DC1637049"
}
How should I write the payload? One sample is below -
var payload = '{"ids":arr,"type":"MrnId",
"extId":"104DC758-25AE-47A8-931A-DD9DC1637049"}';
here arr is the array of ids