Detect if json string is being passed to Controller::respondsTo()