JsonCodec
Interfaces to serialize and deserialize PHP objects to/from JSON
|
Hint::LIST
to indicate an array of objects of the hinted classHint::STDCLASS
to indicate an stdClass
object whose properties are objects of the hinted classHint::USE_SQUARE
and Hint::ALLOW_OBJECT
to customize encoding of list-like objects.Hint::INHERITED
to allow a superclass codec to handle instantiation of its subclass objects.Hint
type. This is a breaking change for methods where a hint was an argument.[]
to indicate a list or homogeneous array of the given type.