有一个包含参数的 json 文件。问题是如何在 PHP 中检查文件的有效性?下面是 json 模式。
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
]
}
有一个包含参数的 json 文件。问题是如何在 PHP 中检查文件的有效性?下面是 json 模式。
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
]
}
作曲家.json
data_invalid.json:
数据.json:
模式.json
}
索引.php