« Ds\Pair::isEmpty Ds\Pair::toArray » PHP Manual Pair Returns a representation that can be converted to JSON Ds\Pair::jsonSerialize (PECL ds >= 1.0.0) Ds\Pair::jsonSerialize — Returns a representation that can be converted to JSON See JsonSerializable::jsonSerialize() Note: You should never need to call this directly.