Merx

$cart->toJson()

Converts the object into a JSON string

$cart->toJson(): string

Return type

string

Exceptions

Type Description
JsonException for invalid JSON

Parent class

Wagnerwagner\Merx\Cart inherited from Kirby\Toolkit\Collection