Treat json request as a xhr request