5.1.0
- Added
Json
. - Added
__toJson()
method intoIItem
.
Added Json
Added wrapper for json_encode
: extas\components\Json
.
Features:
- While encoding
IItem
call__toJson
method. - Whilde decoding into an array, if result contains
extas\interfaces\IJson::MARKER__CLASS
, return an instance of class.
Added __toJson
- This method calling while json_encoding (see
IJson
). - You also can call this method manually.
- Stage
<entity>.to.json
is also added.