Added JSON protocol for simple server