title: Large jwt token payload python
body: <p>I have large payload with 160 counts of dict in the list. </p>
  
  <p>Example:</p>
  
  <pre><code>payload = [`enter code here`{'display_name': u'View',
             'id': 1,
  'permission_name': u'myView'}]
  </code></pre>
  
  <p>So i have to send this payload as Json Web Token, from Django site. JWT is keep giving me error of </p>
  
  <blockquote>
    <p>Expecting a mapping object, as JWT only supports JSON objects as payloads</p>
  </blockquote>
  
  <p>While using following code</p>
  
  <pre><code>jwt.encode(payload, 'secret', algorithm='HS256')
  </code></pre>
  
  <p>While i am using PyJWT package. I have tried convert that payload as json.dumps(payload) still same error. </p>