code: private function parseContent(string $content): \stdClass
      {
          $parsed = json_decode($content);
          if ($parsed === null && json_last_error() !== JSON_ERROR_NONE) {
              throw new \RuntimeException;
          }
  
          return $parsed;
      }
docs: @param string $content
  
  @return \stdClass