code: def export(self, private_keys=True):
          
          exp_dict = dict()
          for k, v in iteritems(self):
              if k == 'keys':
                  keys = list()
                  for jwk in v:
                      keys.append(json_decode(jwk.export(private_keys)))
                  v = keys
              exp_dict[k] = v
          return json_encode(exp_dict)
docs: Exports a RFC 7517 keyset using the standard JSON format
  
          :param private_key(bool): Whether to export private keys.
                                    Defaults to True.