Thanks for the quick response. This doesn't work for me as I must be doing something wrong.
Is this the right way to insert a JSON doc??
insert into test (json) VALUES { @class : 'Account', name : 'Luca', vehicles : [ { @class : 'Vehicle', type : 'Car', model : 'Maserati', isItTrue: false } ] }
When I query the table, I get
orientdb> select json from test
---+---------+--------------------
#| RID |json
---+---------+--------------------
0| #-2:0|{TEST=1}
1| #-2:1|asd
2| #-2:2|{_NOT_PARSED_=[{_NOT_PARSED_=false}]}
Why does the record show as NOT_PARSED....? I think I'm missing some fundamental concepts about how OrientDB treats documents, queries, etc.
Thanks,
Nick