$collection->toJson()

Converts the current object into a json string

  • return (string)