title: JSON.Stringify replacer function not able to get key value
body: <p>I am using JSON.stringify and its replacer parameter. But in replacer parameter i am not able to get key and value, instead of i got key value as empty string "" and value as complete JSON object. What mistake i have done in my code? please clear it. </p>
  
  <pre><code>var replacer=function(key,value){
          debugger; 
      }
      $(function () {
         JSON.stringify({"name":'xxxxx'},replacer)
      });
  </code></pre>
  
  <p>I need to get key as "name" and value as "xxxxx"</p>