def sts_deser(val, sformat="json"):
    if sformat == "urlencoded":
        sformat = "json"
    if sformat in ["dict", "json"]:
        if not isinstance(val, six.string_types):
            val = json.dumps(val)
            sformat = "json"
    return STS().deserialize(val, sformat)
dataset/ETHPy150Open rohe/pyoidc/src/oic/extension/sts.py/sts_deser/original