I have below data while form submit.
{
"formData":[
{"id":"choice1","name":"Test"},
{"id":"choice2","name":"Test2"}
],
"uid":"75"
}
I need to parse it in php backend file.
$postdata = file_get_contents("php://input");
$request = json_decode($postdata);
$formData = $request->formData;
$uid = $request->uid;
I can get uid data properly but i am not sure how to get others.
Any advise on this?