I have the following peace of code:
ODocument doc = session.newInstance(); // Where session is a previously created valid ODatabaseSession
doc.fromJSON(str);
The str is a valid JSON array (for example [“abc”, “def”, “ghi”].
I’m getting an exception "OSerializationException: Error on unmarshalling JSON content … : content must be between { }. The way I see it a JSON array is a valid JSON (and all the other databases accept it as JSON), why do I need to create a dummy entry in the string so that it looks like a JSON object - e.g. {“dummy”:[“abc”, “def”, “ghi”]}.