Added JSON domain input parsing in REST service.