src/Secrets.php
static public function decryptJson($ciphertextFileName, Config $config = null) {
        $content = self::decrypt($ciphertextFileName, $config);
        $data = json_decode($content, JSON_OBJECT_AS_ARRAY);
        Util::isArrayOrFail("Encrypted secrets", $data);
        return $data;
    }
static public function decryptJson($ciphertextFileName, Config $config = null) {
        $content = self::decrypt($ciphertextFileName, $config);
        $data = json_decode($content, JSON_OBJECT_AS_ARRAY);
        Util::isArrayOrFail("Encrypted secrets", $data);
        return $data;
    }
static public function decryptJson ( $ ciphertextFileName , Config $ config = null ) { $ content = self :: decrypt ( $ ciphertextFileName , $ config ) ; $ data = json_decode ( $ content , JSON_OBJECT_AS_ARRAY ) ; Util :: isArrayOrFail ( "Encrypted secrets" , $ data ) ; return $ data ; }
Utility function to decrypt json.

@param $ciphertextFileName
@param Config|null $config
@return mixed
@throws \Exception
Utility function to decrypt json .