I have written a code in PHP , to see the JSON string output. But i am getting null value.
<?php
$l=array();
$l[] = array('a'=>'@cÐaÐjÔÐ J kf _ÞÒi^ ','b'=>']éÞ[ѯРQtÍ]hà_ , `ËSÐ J heZ Òhi');
echo $j = json_encode($l);
?>
Output-:
[{"a":null,"b":null}]
Why the JSON output is coming in null. I am expecting that there must be character encoding problem.
i want the output in following format.
[{"a":"@cÐaÐjÔÐ J kf _ÞÒi^","b":"]éÞ[ѯРQtÍ]hà_ , `ËSÐ J heZ Òhi"}]
Please help me out. Please suggest me some solution
Thanks in Advance !!!