I'm trying send form input data to REST SERVICE. Here the Present format is
{
"locationname":"test",
"locationtype":"test",
"address":"test"
}
but service accepting format is
{
"value": "{ locationname: test ,locationtype: test, address:test }",
}
tried to convert string with below
const tests = JSON.parse(JSON.stringify(Form.value));
but how to assign to Value
I expect the result after form submit
{
"value":"{ locationname: test ,locationtype: test, address:test }",
}
const tests = JSON.stringify({ value : JSON.stringify(Form.value) });const tests = { value : JSON.stringify(Form.value) };