function postJson($action,$json,$options = array()){
		if(!is_string($json)){
			$json = json_encode($json);
		}
		$options += array(
			"mime_type" => "application/json",
			"params" => array(),
		);
		$params = $options["params"];
		unset($options["params"]);
		return $this->postRawData($action,$json,$params,$options);
	}
function postJson($action,$json,$options = array()){
		if(!is_string($json)){
			$json = json_encode($json);
		}
		$options += array(
			"mime_type" => "application/json",
			"params" => array(),
		);
		$params = $options["params"];
		unset($options["params"]);
		return $this->postRawData($action,$json,$params,$options);
	}
function postJson ( $ action , $ json , $ options = array ( ) ) { if ( ! is_string ( $ json ) ) { $ json = json_encode ( $ json ) ; } $ options += array ( "mime_type" => "application/json" , "params" => array ( ) , ) ; $ params = $ options [ "params" ] ; unset ( $ options [ "params" ] ) ; return $ this -> postRawData ( $ action , $ json , $ params , $ options ) ; }
Sends JSON to the specific action

$api_data_fetcher->postJson('action','{"a":"b","c":"d"}');

// array will be automatically encoded into a JSON
$api_data_fetcher->postJson('action',["a" => "b", "c" => "d"]);

// URL params can be a part of the action
$api_data_fetcher->postJson('action/?url_param=value',["a" => "b", "c" => "d"]);
// or passed in option
$api_data_fetcher->postJson('action',["a" => "b", "c" => "d"],["params" => ["url_param" => "value"]]);
Sends JSON to the specific action