JSON validation error in REST service and infra for configs of environments