Added JSON parsing of requests