protected function parseJsonBody()
    {
        $data = json_decode($this->getBody(), true);
        
        if (!isset($data) && json_last_error()) {
            trigger_error("Failed to parse json body: " . json_last_error_msg(), E_USER_WARNING);
        }
        
        return $data;
    }
protected function parseJsonBody()
    {
        $data = json_decode($this->getBody(), true);
        
        if (!isset($data) && json_last_error()) {
            trigger_error("Failed to parse json body: " . json_last_error_msg(), E_USER_WARNING);
        }
        
        return $data;
    }
protected function parseJsonBody ( ) { $ data = json_decode ( $ this -> getBody ( ) , true ) ; if ( ! isset ( $ data ) && json_last_error ( ) ) { trigger_error ( "Failed to parse json body: " . json_last_error_msg ( ) , E_USER_WARNING ) ; } return $ data ; }
Parse json body

@return array|mixed
Parse json body