$collection->toJson()
Converts the object into a JSON string
$collection->toJson(): string
Return type
string
This method modifies the existing $collection
object it is applied to and returns it again.
Converts the object into a JSON string
$collection->toJson(): string
string
This method modifies the existing $collection
object it is applied to and returns it again.