- json_encode: documentation ( source)
<?php
$postData = json_encode(
array(
"data" => array(
"updateItemList" => true,
"itemListId" => 1
),
"channels" => array(
"list1"
),
)
);
echo $postData;