code: public function jsonSerialize()
      {
          $ret = new stdClass();
  
          $ret->content = $this->content;
          $ret->context = $this->context;
  
          return $ret;
      }
docs: Specify data which should be serialized to JSON (PHP 5.4.0+ only).
  
  @link http://php.net/manual/en/jsonserializable.jsonserialize.php
  
  @return mixed data which can be serialized by <b>json_encode</b>,
  which is a value of any type other than a resource.