public static function createFromJson(string $json): self
    {
        $data = \json_decode($json, true);
        if (!\is_array($data)) {
            throw new InvalidArgumentException('Invalid argument.');
        }

        return self::createFromKeyData($data);
    }
public static function createFromJson(string $json): self
    {
        $data = \json_decode($json, true);
        if (!\is_array($data)) {
            throw new InvalidArgumentException('Invalid argument.');
        }

        return self::createFromKeyData($data);
    }
public static function createFromJson ( string $ json ) : self { $ data = \ json_decode ( $ json , true ) ; if ( ! \ is_array ( $ data ) ) { throw new InvalidArgumentException ( 'Invalid argument.' ) ; } return self :: createFromKeyData ( $ data ) ; }
Creates a JWKSet object using the given Json string.

@return JWKSet
Creates a JWKSet object using the given Json string .