Fixes #5028: Including ajax forward hooks in json response.