title: Django serializer for one object
body: <p>I'm trying to figure out a way to serialize some Django model object to JSON format, something like:</p>
  
  <pre><code>j = Job.objects.get(pk=1)
  ##############################################
  #a way to get the JSON for that j variable???
  ##############################################
  </code></pre>
  
  <p>I don't want:</p>
  
  <pre><code>from django.core import serializers
  serializers.serialize('json', Job.objects.get(pk=1),ensure_ascii=False)
  </code></pre>
  
  <p>Because it returns JSON array, not a single object representation.</p>
  
  <p>Any ideas?</p>
  
  <p>One way I'm thinking of: is to find a way to get a hash(attribute,value) of the object and then use simplejson to get the JSON representation of it, however I don't know how to get that hash.</p>