1. Go to this page and download the library: Download jsonmodifier/json library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jsonmodifier / json example snippets
php
// Import vendor/autoload file
struct method take one argument which is the JSON file path.
$json = new PhpJsonModifier\JsonModifier('json/items.json');
// Start performing your operations.
$data = $json->index('items')
->get();