Does anyone have a working example of JSON insert/select in OrientDB?

orientdb

Solution

1.Use "content" to implement JSON insert.

For Example- `insert into Person content {"name":"nawab","age":25}`

for this to run,you must have prior configuration as- 1.Create a Vertex by-

create class Person extends V    

2.Then Create Property name and age

`create property Person.name string` `create property Person.age integer`

Problem

Select query doesn't work for JSON in OrientDB. Can someone provide with a working example showcasing two things: Inserting JSON data correctly Querying JSON data Thanks!

Original source