$json_data = ["1_1","2_87","2_7_2.5","2_101_2.5","2_89"] ; $json_data = json_encode($json_data); curl_setopt($ch, CURLOPT_POSTFIELDS, $json_data);