Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php check if json

function isJson($string) {
 json_decode($string);
 return (json_last_error() == JSON_ERROR_NONE);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #check #json
ADD COMMENT
Topic
Name
2+8 =