0

我有一种情况,我必须在 json 以下进行转换

{ "Authenticators": [
    "ALPHA",
    "BETA",
    "GAMA"
] }

{ "availableAuth":"ALPHA,BETA,GAMA" }

4

1 回答 1

0

检查此规范

[
  {
    "operation": "modify-overwrite-beta",
    "spec": {
      "Authenticators": "=join(',',@(1,Authenticators))"
    }
  }, {
    "operation": "shift",
    "spec": {
      "Authenticators": "availableAuth"
    }
  }
]
于 2020-10-28T09:08:33.600 回答