public static List<String> toStringList(JsonNode jsonArray) {
    if (!jsonArray.isArray()) {
      return Collections.emptyList();
    }

    List<String> result = new ArrayList<>();
    for (JsonNode node : jsonArray) {
      result.add(node.asText());
    }

    return result;
  }
This class contains utility methods for JSON (http://www.json.org/) which is used by classes used
for the Command Line Interface (CLI).

@since GemFire 7.0
geode-core/src/main/java/org/apache/geode/management/internal/util/JsonUtil.java