Caribasius
7/11/2017 - 2:14 PM

is json?#is #json

is json?#is #json

<?
function isJson($string) {
  json_decode($string);
  return (json_last_error() == JSON_ERROR_NONE);
}
?>