mirror of
https://github.com/cerbero90/json-parser.git
synced 2025-01-16 20:48:15 +01:00
15 lines
215 B
PHP
15 lines
215 B
PHP
<?php
|
|
|
|
namespace Cerbero\JsonParser;
|
|
|
|
/**
|
|
* Parse the given source of JSON
|
|
*
|
|
* @param mixed $source
|
|
* @return JsonParser
|
|
*/
|
|
function parseJson(mixed $source): JsonParser
|
|
{
|
|
return new JsonParser($source);
|
|
}
|