I need to send this form of data :
$objectData = '{"userid":"abc", "action":"def","data":"data"}';
I have the vars already :
$userID=htmlspecialchars($_GET["userid"]);
$action=htmlspecialchars($_GET["action"]);
$data=htmlspecialchars($_GET["data"]);
How should i create $objectData with these fields inside(userid/action/data)?
Something similar i know (OBJ-C) [stringWithFormat:" %@, %d", "a", 5 ];
htmlspecialcharsis unnecessary/misplaced/abused/wrong here.