* @throws JsonException if array can't be transformed in JSON representation
*/
public JsonValue createJsonArray(Object array) throws JsonException
{
if (array == null)
return new NullValue();
Types t = JsonUtils.getType(array);
JsonValue jsonArray = new ArrayValue();
int length = Array.getLength(array);
if (t == Types.ARRAY_BOOLEAN)