code: def json_dumps(o):
      
      return json.dumps(o, indent=4, sort_keys=True, ensure_ascii=True,
                        separators=(',', ': ')).encode('ascii')
docs: Write JSON in a consistent, human-readable way.