src/main/java/org/firepick/JSONResult.java
public String getString(String defaultValue) {
    if (value instanceof String || value instanceof Number) {
      return value.toString();
    }
    if (value == null) {
      return null;
    }
    if (value instanceof JSONArray) {
      return ((JSONArray) value).toJSONString();
    }
    if (value instanceof JSONObject) {
      return ((JSONObject) value).toJSONString();
    }
    if (value == null) {
      return defaultValue;
    }
    throw createException("Expected string:");
  }
public String getString(String defaultValue) {
    if (value instanceof String || value instanceof Number) {
      return value.toString();
    }
    if (value == null) {
      return null;
    }
    if (value instanceof JSONArray) {
      return ((JSONArray) value).toJSONString();
    }
    if (value instanceof JSONObject) {
      return ((JSONObject) value).toJSONString();
    }
    if (value == null) {
      return defaultValue;
    }
    throw createException("Expected string:");
  }
Return string value for current JSON value