Polyfill for JsonSerializable

JsonSerializable was introduced in PHP 5.4.0.

see
package Default