I got a string like below:

```
{
    "test": [
        "",
        "abc",
        "IF(Var218 = "charlie") AND (Var85 ≤ 0) AND (Var207 = \"some value\"; \"du\") THEN Appetency = 1 ",
        "",
        """"
    ]
}

```

The string will be parsed as a JSON object, now the question is how should I escape some of the double quotes in the string in Java effectively?

The string above is just one example, and please notice not all double quotes in the string should be escaped, only double quotes such as in "charlie" and """" should be escaped, otherwise json parser will not parse the string correctly. Expected result should be like:

```
{
    "test": [
        "",
        "abc",
        "IF(Var218 = \"charlie\") AND (Var85 ≤ 0) AND (Var207 = \"some value\"; \"du\") THEN Appetency = 1 ",
        "",
        "\"\""
    ]
}

```

Thanks.