3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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>"; ?>
based on lEe2h
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
JSON payload: {"Name":"test","Description":"test","Project":{"Id":13197},"AssignedTeams":[{"Team":{"Id":15}}],"EntityState":{"Id":64},"CustomFields":[{"Name":"Customer","Type":"DropDown","Value":"hi"}]}<br><br>