PHP code example of colinodell / json5
1. Go to this page and download the library: Download colinodell/json5 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/ */
colinodell / json5 example snippets
php
$json = file_get_contents('foo.json5');
$data = json5_decode($json);
bash
json5 file.json5
bash
json5 file.json5 > file.json
bash
echo -e "{hello: 'world!'}" | json5
bash
echo -e "{hello: 'world!'}" | json5 > output.json