I noticed if i send a request with a string where XBMC is expecting an integer it hangs the JSONRPC interface, i thought maybe you could catch that in your wrapper throwing an exception (or just converting the value to intval).
eg
PHP Code:
$badvar = array('start' => $_POST['start'], 'end' => $_POST['end']);
try{
$response = $rpc->AudioLibrary->GetArtists($badvar);
} catch(XBMC_RPC_Exception $e) {
die($e->getMessage());
}
stops XBMC from responding on the JSON interface.

You must be using another wrapper. I was confused as I already have code to manage varying param configurations.
Search
Help