WordPress at a glance
class is not described

JsonSerializable{} WP 4.4.0

JsonSerializable interface.

Compatibility shim for PHP <5.4

No Hooks.

Return

Nothing (null).

Usage

$JsonSerializable = new JsonSerializable();
// use class methods

Methods

  1. jsonSerialize()

Code of JsonSerializable: wp-includes/compat.php VER 5.1.1

<?php
interface JsonSerializable {
	public function jsonSerialize();
}