Interface

TRex\Serialization\IJsonCastable

interface IJsonCastable

Describes an object which can be converted to a Json.

Methods

Json toJson(int $options = JSON_PRETTY_PRINT)

Converts an object to a Json object.

Details

at line 21
public Json toJson(int $options = JSON_PRETTY_PRINT)

Converts an object to a Json object.

The exported data contains all property values ofn the class and its parents, who are not transient.

Parameters

int $options

Return Value

Json