I am trying to create a document where the key is some string and the value is an object, but I am getting
an IllegalArgumentException when trying so.
Here is what I have:
MutableDocument document = new MutableDocument();
Map<String, Object> map = new HashMap<>();
map.put("blah", new MyObj(val1, val2, val3));
document.setData(map);//error here: "MyObj is not a valid type. You may only pass MutableDictionary, Dictionary, MutableArray, Array, Map, List, Date, String, Number, Boolean, Blob or null."