Fix json_decode success testing