mirror of
https://github.com/cerbero90/json-parser.git
synced 2025-01-17 21:18:41 +01:00
17 lines
295 B
PHP
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);
|
|
}
|
|
}
|