JsonParser class
Framework\Config\Parsers\JsonParser
Class JsonParser.
Extends Framework\Config\Parsers\Parser
Defined in libraries/config/src/Parsers/JsonParser.php
Methods #
- parse()
- Parses a JSON file.
parse()
public static function parse(mixed $config): array
Parses a JSON file.
Parameters
- mixed $config - path to the JSON file
Returns
array
- The JSON parsed data
Inherited methods #
-
parseOrThrow()fromFramework\Config\Parsers\Parser -
checkConfig()fromFramework\Config\Parsers\Parser -
addChild()fromFramework\Config\Parsers\Parser -
getValue()fromFramework\Config\Parsers\Parser -
ksortRecursive()fromFramework\Config\Parsers\Parser