protected function encodePropertyName($name, $preserveNames)
	{
		return ($preserveNames || !$this->isLegalProp($name)) ? json_encode($name) : $name;
	}
protected function encodePropertyName($name, $preserveNames)
	{
		return ($preserveNames || !$this->isLegalProp($name)) ? json_encode($name) : $name;
	}
protected function encodePropertyName ( $ name , $ preserveNames ) { return ( $ preserveNames || ! $ this -> isLegalProp ( $ name ) ) ? json_encode ( $ name ) : $ name ; }
Encode an object property name into JavaScript

@param  string $name
@param  bool   $preserveNames
@return string
Encode an object property name into JavaScript