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