- print_r: documentation ( source)
- json_encode: documentation ( source)
<?php
$json['AVAILABLE_ROLE']=array();
$json['asd']="";
$json['qwe']=array("IDHtmlCode"=>"25","inputHtmlCode"=>'as"d');
print_r((json_encode($json,SON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP | JSON_UNESCAPED_UNICODE)));
?>