192193194195196197198199200201202
String v = ""; v = convertToString(obj); arr.add(v); } } value.addAll(arr); attrContainer.element(entry, value); } else if (bValue instanceof Map<?, ?>) { attrContainer.element(entry, bValue); } // dealt with single value attributes (String, Number,
1920212223242526272829
return error; } public static JSONObject error(Type type, List<String> messages) { JSONArray array = new JSONArray(); array.addAll(messages); JSONObject error = new JSONObject(); error.put("type", type); error.put("msg", array); return error;