json-parser/helpers.php

15 lines
215 B
PHP
Raw Normal View History

2022-09-17 05:02:40 +02:00
<?php
2022-12-23 21:45:50 +10:00
namespace Cerbero\JsonParser;
2022-09-17 05:02:40 +02:00
2023-01-04 16:51:20 +10:00
/**
* Parse the given source of JSON
*
* @param mixed $source
* @return JsonParser
*/
function parseJson(mixed $source): JsonParser
{
return new JsonParser($source);
2022-09-17 05:02:40 +02:00
}