Ds\Stack::jsonSerialize

Ds\Stack::jsonSerializeReturns a representation that can be converted to JSON

See JsonSerializable::jsonSerialize()

Note:

You should never need to call this directly.