这是indexloc提供的服务,不要输入任何密码
Skip to content

KVM entry create with JSON adds too many \ #510

@kurtkanaskie

Description

@kurtkanaskie

CLI adds too many '' chars

apigeeclix kvms entries create --org=$ORG --env=$ENV --map=json --key=json-cli --value='{\"hello\":\"joe\"}'
{
    "name": "json1",
    "value": "{\\\"hello\\\":\\\"joe\\\"}"
}

API produces

curlx -X POST -H "Content-Type:application/json" \
    https://apigee.googleapis.com/v1/organizations/$ORG/environments/$ENV/keyvaluemaps/json/entries \
    -d '{"name":"json-api","value":"{\"hello\":\"joe\"}"}'
{
  "name": "json-api",
  "value": "{\"hello\":\"joe\"}"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions