To fix this, you should use the appropriate data structure for deserializing the JSON array. In this case, you should use JsonArray instead of JsonObject since the input is an array of strings. String arrayOfStrings = "[\"abc\",\"efg\",\"ijk\"]";
// Parse the JSON array into a JsonArray
JsonArray ...