original_string: private function _toJson($data)
      {
          if ($data) {
              if (is_array($data)) {
                  return json_encode($this->_toCleanArray($data));
              }
  
              return json_encode($data);
          }
      }
code: private function _toJson($data)
      {
          if ($data) {
              if (is_array($data)) {
                  return json_encode($this->_toCleanArray($data));
              }
  
              return json_encode($data);
          }
      }
code_tokens: private function _toJson ( $ data ) { if ( $ data ) { if ( is_array ( $ data ) ) { return json_encode ( $ this -> _toCleanArray ( $ data ) ) ; } return json_encode ( $ data ) ; } }
docstring: Converts data types for storage
  
  @param mixed $data
  @return string
docstring_tokens: Converts data types for storage