dinodev / json
用于修改 JSON 的 PHP 库
2.0.2
2021-12-08 17:35 UTC
README
用于修改 JSON 的 PHP 库
如何使用
命名空间: DinoDev\Json\Classes
使用: DinoDev\Json\Classes\Json
获取 JSON 文件
$Json = new Json(); $Json->getJson(__DIR__ . "/File.json"); //It will Return A Array of Json, or Error.
写入 JSON 文件
$Json = new Json(); $Json->writeJson(__DIR__ . "/File.json", ["New JSON File" => "It's Working"]); //Will Subscribe File.Json to the Array