Added JSON processing