title: Is there a way to use something equivalent to json.dumps in javascript
body: <p>I am supplying a list of objects to my django template. I have a conditions where i am accessing one of the field of object in template which is a json field containing <code>u'</code> characters like <code>{u'option': False, u'name': u'test string'}</code></p>
  
  <p>We usually use json.dumps for this in python to convert this to <code>{"option": False, "name": "test string"}</code>, which is proper json that i want to have as i need to access such string in my javascript.</p>
  
  <p>Is there a simple way to do this in javascript? I would like to avoid using regex to strip out <code>u' and '</code> and replace with <code>"</code></p>
  
  <p>Sorry if this was very basic. Don't know much about javascript.</p>
  
  <p>Or is there a way to just encode my object fields to_json somehow from python?</p>