title: Disallowed key characters in alert of ajax response
body: <pre><code>  var onSuccess=function(data)
    {
         alert(data);
         obj=JSON.parse(data);
         var response=obj.response;
     }
  </code></pre>
  
  <p>the above is my javascript file and next is the how i am sending the response</p>
  
  <pre><code>         $hash=$this-&gt;db-&gt;query($query);
           if ($hash-&gt;num_rows() &gt; 0)
               $valid['response']= 0;
          else
               $valid['response']= 1;
           return($valid_user);
  </code></pre>
  
  <p>the alert box is showing "disallowed key characters" and even i had checked config file in codeigniter .... everything is correct as mentioned everywhere</p>
  
  <pre><code>  $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
  </code></pre>