- json_encode: documentation ( source)
<?php
$request = array(
'Name' => "test",
'Description' => "test",
'Project' => array('Id' => 13197), // PSO project
'AssignedTeams' => array(
array(
'Team' => array('Id' => 15)
)
),
'EntityState' => array('Id' => 64), // New status
'CustomFields' => array(
array(
'Name' => "Customer",
'Type' => "DropDown",
'Value' => "hi"
)
)
);
$json = json_encode($request);
echo "JSON payload: " . $json . "<br><br>";
?>