added JSON header to SendAsJSON