Hi @O703980
The String Array that you have mentioned is a valif JSON whereas the expected JSON array you mentioned is not a valid JSON.
do you mean by:
[{\"linkName\":\"test\",\"linkUrl\":\"test\"}, {\"linkName\":\"test\",\"linkUrl\":\"test\"}]
to
"[{\"linkName\":\"test\",\"linkUrl\":\"test\"}, {\"linkName\":\"test\",\"linkUrl\":\"test\"}]"
If that's the case you can use the Gson API.
String x = input;
Gson gson = new Gson();
String toJson = gson.toJson(x);