src/EnvironmentCheckSuiteResult.php
public function toJSON()
    {
        $result = [
            'Status' => $this->Status(),
            'ShouldPass' => $this->ShouldPass(),
            'Checks' => []
        ];
        foreach ($this->details as $detail) {
            $result['Checks'][] = $detail->toMap();
        }
        return json_encode($result);
    }
public function toJSON()
    {
        $result = [
            'Status' => $this->Status(),
            'ShouldPass' => $this->ShouldPass(),
            'Checks' => []
        ];
        foreach ($this->details as $detail) {
            $result['Checks'][] = $detail->toMap();
        }
        return json_encode($result);
    }
public function toJSON ( ) { $ result = [ 'Status' => $ this -> Status ( ) , 'ShouldPass' => $ this -> ShouldPass ( ) , 'Checks' => [ ] ] ; foreach ( $ this -> details as $ detail ) { $ result [ 'Checks' ] [ ] = $ detail -> toMap ( ) ; } return json_encode ( $ result ) ; }
Convert the final result status and details to JSON.

@return string
Convert the final result status and details to JSON .