JsonProcessor¶
-
php\format\JsonProcessor
extends: php\format\Processor
Class JsonProcessor
Constants
Methods
__construct
($flags = 0)¶
Parameters:
- $flags – int
parse
($json)¶throws php\format\ProcessorException
Parameters:
- $json – string, php\io\Stream
Returns: mixed
format
($value)¶throws php\format\ProcessorException
Parameters:
- $value – mixed
Returns: string
formatTo
($value, $output)¶throws php\format\ProcessorException
Parameters:
- $value – mixed
- $output – php\io\Stream
onSerialize
($nameOfType, $handler = null)¶
Parameters:
- $nameOfType – string - - null, int, float, string, bool, object, array
- $handler – callable - (mixed $value) -> mixed
onClassSerialize
($className, $handler = null)¶
Parameters:
- $className – string
- $handler – callable