src/JSONObject.php
public function toJSONArray($names = NULL)
	{
		if($names == NULL || count($names) == 0)
		{
			return NULL;
		}
		
		$ja = new JSONArray();
		
		foreach($this->map as $key => $value)
		{
			$ja->put($this->opt($key));
		}
		
		return $ja;
	}
public function toJSONArray($names = NULL)
	{
		if($names == NULL || count($names) == 0)
		{
			return NULL;
		}
		
		$ja = new JSONArray();
		
		foreach($this->map as $key => $value)
		{
			$ja->put($this->opt($key));
		}
		
		return $ja;
	}
public function toJSONArray ( $ names = NULL ) { if ( $ names == NULL || count ( $ names ) == 0 ) { return NULL ; } $ ja = new JSONArray ( ) ; foreach ( $ this -> map as $ key => $ value ) { $ ja -> put ( $ this -> opt ( $ key ) ) ; } return $ ja ; }
Produce a JSONArray containing the values of the members of this JSONObject.

@param $names An array containing a list of key strings. This determines the sequence of the values in the result.
@return A JSONArray of values.
Produce a JSONArray containing the values of the members of this JSONObject .