[eluser]artie11[/eluser]
I've found a place to patch it, unless someone has a better idea,
However it's getting to be like 1am here, so my brain is slowly stopping,
Under system/codeigniter/common.php there's an error function, it could have a look at the current get string and work out if it needs to be passed back as a json error.
However as previously stated, my brain isn't working out the part about looking for which controller