title: How to convert javascript object into json without using "JSON.stringify" method?
body: <p>Is there any way to convert javascript object into JSON.</p>
  
  <p>I can not use </p>
  
  <p><code>JSON.stringify(&lt;obj&gt;)</code></p>
  
  <p>Because there is no stringify method in the JSON object in the following link.</p>
  
  <p><a href="http://www.4luggage.com" rel="noreferrer">Link</a></p>
  
  <p>Example: </p>
  
  <pre><code>var obj = {'x':1,'y':2}
  </code></pre>
  
  <p>Now if I'll run </p>
  
  <pre><code>console.log(JSON.stringify(obj));
  </code></pre>
  
  <p>Then I'm getting this error.</p>
  
  <blockquote>
    <p>error: TypeError: Object # has no method 'stringify'</p>
  </blockquote>