$media->toJson($callback = null)

Converts the entire media object into a JSON string

  • $callback (callable)
    Mapping callback
  • return (string)