Added JSON support for all HTTP methods