Added debug JSON method, view