This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Need to update the key value pair dynamically in JSON response using C# script

After sending request, the key value pair should get updated dynamically based on the request value

For instance, When we send request, the response is generated with key value pair (Key:12345 and Value: UpdateAPI). So, for every request the key value pair should get updated dynamically.

Response 1:

{

 "send" : "SMS",

 "message" : "optional",

 "data":

 {

 "12345" : "updateAPI"

 }

 

}

Response 2:

{

 "send" : "SMS",

 "message" : "optional",

 "data":

 {

 "67890" : "6567TFUYy" // Random Number as Key and Random Alphanumeric value as value.

 }

 

}