getAsJson() public method

Returns the given .env as JSON array containing all entries as object with key and value
public getAsJson ( null $timestamp = NULL ) : string
$timestamp null
return string
 /**
  * @param null $timestamp
  * @return string
  *
  * Returns the content as JSON
  */
 public function getDetails($timestamp = NULL)
 {
     $env = new Env();
     return $env->getAsJson($timestamp);
 }