Skip to content

Commit

Permalink
fix: serialized arrays in studio
Browse files Browse the repository at this point in the history
  • Loading branch information
lvca committed Aug 30, 2024
1 parent cd2dd22 commit fefeba6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.arcadedb.serializer.json.JSONArray;
import com.arcadedb.serializer.json.JSONObject;

import java.lang.reflect.*;
import java.util.*;

public class JsonSerializer {
Expand Down Expand Up @@ -92,6 +93,8 @@ else if (value instanceof Collection)
value = serializeCollection(database, (Collection<?>) value);
else if (value instanceof Map)
value = serializeMap(database, (Map<Object, Object>) value);
else if (value.getClass().isArray())
value = serializeCollection(database, List.of((Object[]) value));

value = convertNonNumbers(value);

Expand Down

0 comments on commit fefeba6

Please sign in to comment.