original_string: protected function serializeData($value)
      {
          $this->guardForUnsupportedValues($value);
  
          if ($this->isInstanceOf($value, 'SplFixedArray')) {
              return SplFixedArraySerializer::serialize($this, $value);
          }
  
          if (\is_object($value)) {
              return $this->serializeObject($value);
          }
  
          $type = (\gettype($value) && $value !== null) ? \gettype($value) : 'string';
          $func = $this->serializationMap[$type];
  
          return $this->$func($value);
      }
code: protected function serializeData($value)
      {
          $this->guardForUnsupportedValues($value);
  
          if ($this->isInstanceOf($value, 'SplFixedArray')) {
              return SplFixedArraySerializer::serialize($this, $value);
          }
  
          if (\is_object($value)) {
              return $this->serializeObject($value);
          }
  
          $type = (\gettype($value) && $value !== null) ? \gettype($value) : 'string';
          $func = $this->serializationMap[$type];
  
          return $this->$func($value);
      }
code_tokens: protected function serializeData ( $ value ) { $ this -> guardForUnsupportedValues ( $ value ) ; if ( $ this -> isInstanceOf ( $ value , 'SplFixedArray' ) ) { return SplFixedArraySerializer :: serialize ( $ this , $ value ) ; } if ( \ is_object ( $ value ) ) { return $ this -> serializeObject ( $ value ) ; } $ type = ( \ gettype ( $ value ) && $ value !== null ) ? \ gettype ( $ value ) : 'string' ; $ func = $ this -> serializationMap [ $ type ] ; return $ this -> $ func ( $ value ) ; }
docstring: Parse the data to be json encoded.
  
  @param mixed $value
  
  @return mixed
  
  @throws SerializerException
docstring_tokens: Parse the data to be json encoded .