Add debug info to json response