Added JSON support for responses