PHP provides nice interface to serialize data to Json, that is also fast. It works only in the serialization direction, there is no way to handle deserialization with it. In our benchmarks, after adding it to Author class we gained 15% faster serialization.
This is a very nice addition. I think that it should be an opt in feature as it might be seen as a BC break if suddenly we start using it to decide what json serializeation should look
Why?
PHP provides nice interface to serialize data to Json, that is also fast. It works only in the serialization direction, there is no way to handle deserialization with it. In our benchmarks, after adding it to
Author
class we gained 15% faster serialization.TODOs: