JSON
PHP Manual

The JsonSerializable interface

(PHP 5 >= 5.4.0)

Introduction

Objects implementing JsonSerializable can customize their JSON representation when encoded with json_encode().

Interface synopsis

JsonSerializable {
/* Methods */
abstract public mixed jsonSerialize ( void )
}

Table of Contents


JSON
PHP Manual