// 1. Known types (primitive, String, array of primitive or String)
// 2. Array of any object (expect for Java Bean)
// 3. Collection<?>
// 4. Map<String, ?>
if (JsonUtils.getType(o) != null)
jsonObject.addElement(k, createJsonValue(o));
else
jsonObject.addElement(k, createJsonObject(o));
}
return jsonObject;
}