<?php
function isValidJSON($str) {
return json_last_error() == JSON_ERROR_NONE;
}
PD9waHAKCmZ1bmN0aW9uIGlzVmFsaWRKU09OKCRzdHIpIHsKICAganNvbl9kZWNvZGUoJHN0cik7CiAgIHJldHVybiBqc29uX2xhc3RfZXJyb3IoKSA9PSBKU09OX0VSUk9SX05PTkU7Cn0KCnZhcl9kdW1wKGlzVmFsaWRKU09OKG51bGwpKTsKdmFyX2R1bXAoaXNWYWxpZEpTT04oIiIpKTs=