Added JSON debugging code to RequestController