Merx

$productList->toJson()

Converts the object into a JSON string

$productList->toJson(): string

Return type

string

Exceptions

Type Description
JsonException for invalid JSON

Parent class

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