Skip to content

Replacing with string that contains quotation #47

Open
@husainaloos

Description

@husainaloos

Suppose that I want to replace a string with a json object.

original file:
<key>old_value</key>

using this json:
"key" : "$(my_value)"

where my_value is a env variable. Suppose that my_value is a string that contains quotation mark, something like
my_value = string"string"maybeJson

When doing the replacement, the json replacement is no longer valid json. I tried escaping the value of my_value but that didn't work because TFS adds double escape. Any idea how to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions