i have a json-object named `jsonObject`

```
{
    "action":"Read",
    "infos":[
        {
            "value":0.0350661,
            "key":"first"
        }
    ]
}

```

i wanna to print the json-object to with the following form

```
{"action":"Read","infos":[{"value":0.0350661,"key":"first"}]}

```

if i use `jsonObject.toString()` method i will get

```
{"action":"Read","infos":"[{\"value\":0.0350661,\"key\":\"first\"}]"}

```

if i use `StringEscapeUtils.unescapeJava(jsonObject.toString())` method i will get

```
{"action":"Read","infos":"[{"value":0.0350661,"key":"first"}]"}

```

if i use jackson mapper with the following code

```
ObjectMapper mapper = new ObjectMapper();
mapper.setVisibility(PropertyAccessor.FIELD, JsonAutoDetect.Visibility.ANY);
String jsonString = mapper.writeValueAsString(getDebugInfo())

```

i will get `jsonString` as

```
{"nameValuePairs":{"action":"Read","infos":[{"value":0.0350661,"key":"first"}]}}

```

is there any solution to get the desired output json-string?