<?php

$json_string = '{"str1":"x66xexq"}';

$json_string = json_decode($json_string);

$str2 = 'x66xexq';

if ($str2 == $json_string->str1){
   echo 'Строки равны';
}else{
   echo 'Строки не равны';
}