MCPcopy Index your code
hub / github.com/authlib/authlib / parse_json

Method parse_json

authlib/jose/rfc7516/jwe.py:686–693  ·  view source on GitHub ↗

Parse JWE JSON Serialization. :param obj: JWE JSON Serialization as str or dict :return: Parsed JWE JSON Serialization as dict if `obj` is an str, or `obj` as is if `obj` is already a dict

(obj)

Source from the content-addressed store, hash-verified

684
685 @staticmethod
686 def parse_json(obj):
687 """Parse JWE JSON Serialization.
688
689 :param obj: JWE JSON Serialization as str or dict
690 :return: Parsed JWE JSON Serialization as dict if `obj` is an str,
691 or `obj` as is if `obj` is already a dict
692 """
693 return ensure_dict(obj, "JWE")
694
695 def get_header_alg(self, header):
696 if "alg" not in header:

Calls 1

ensure_dictFunction · 0.90