JavaScript Object Notation

Table of Contents

The JsonSerializable interface

Introduction

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

Interface synopsis

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