PHP code example of keboola / json-parser
1. Go to this page and download the library: Download keboola/json-parser 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/ */
keboola / json-parser example snippets
use Keboola\Json\Parser;
$parser = new Parser(new Analyzer(new NullLogger(), new Structure()));
$file = file_get_contents("some/data.json");
$json = json_decode($file);
$parser->process($json);
$results = $parser->getCsvFiles(); // array of CsvFile objects