$jsonData = array(“amount”=>500,“payload”=>{“duplicateTedAgreement”=>false,“favoriteIdTo”=>“x”});
$ch = curl_init( $url );
$jsonDataEncoded = json_encode($jsonData);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonDataEncoded);
erro que retorna Parse error : syntax error, unexpected ‘{’