title: How to encapsulate JSON in parentheses?
body: <p>I have this code :</p>
  
  <pre><code>objects = Event.objects.all()
  i = 0
  dict = {}
  small_dict = {}
  for o in objects:
      small_dict = {'id': o.id, 'url': o.url, 'name': o.name, 'image': o.image}
      dict[str(i+1)] = small_dict
      small_dict = {}
  
  return HttpResponse(
      simplejson.dumps(dict),
      content_type = 'application/javascript; charset=utf8'
  )
  </code></pre>
  
  <p>and it gives me this :</p>
  
  <pre><code>{"1": {"url": "http://www.rte.ie/tv/crimecall/", "image": "http://img.rasset.ie/0002c8d0-250.jpg", "id": 2, "name": "Crimecall"}}
  </code></pre>
  
  <p>How I can further encapsulate it between <code>()</code> parentheses ? Because without them I'm getting error when parsing them in php.</p>