正则匹配是否为json数据类型

441 阅读1分钟

preg_match('/[^,:{}\\[\]0-9.\-+Eaeflnr-u \n\r\t]/',$json_string)