json-parser/helpers.php
Andrea Marco Sartori 1ae562cdc1 First draft
2022-09-17 05:02:40 +02:00

17 lines
295 B
PHP

<?php
use Cerbero\JsonParser\JsonParser;
if (!function_exists('parseJson')) {
/**
* Parse the given source of JSON
*
* @param mixed $source
* @return iterable
*/
function parseJson(mixed $source): iterable
{
return new JsonParser($source);
}
}