I am attempting to send form input data to a REST service. Currently, the format is as follows:
{
"locationname":"test",
"locationtype":"test",
"address":"test"
}
However, the service is only accepting the following format:
{
"value": "{ locationname: test ,locationtype: test, address:test }",
}
I have tried converting the string using the code snippet below:
const tests = JSON.parse(JSON.stringify(Form.value));
but I am unsure how to assign it to Value.
My desired result after submitting the form would be:
{
"value":"{ locationname: test ,locationtype: test, address:test }",
}