<?php
/**
* Example: get($object = true)
* ================================
*
* To get processed data you have to use get() method
*/
require_once '../vendor/autoload.php';
use Nahid\JsonQ\Jsonq;
$q = new Jsonq('data.json');
try {
$res = $q->from('vendor.name')->get();
dump($res);
} catch (\Nahid\JsonQ\Exceptions\ConditionNotAllowedException $e) {
echo $e->getMessage();
} catch (\Nahid\JsonQ\Exceptions\NullValueException $e) {
echo $e->getMessage();
}
|