Hi,

did you try the ODocument.fromJSON() method instead of the constructor?

Regards.

Le dimanche 19 avril 2015 13:24:51 UTC+2, satish b a écrit :
>
> Hello
>
> I'm getting an OCommandSQLParsingException: Error on parsing command at 
> position #0: Invalid keyword: "TYPE":"PERSON"
>
> I have tried with both 2.1-rc1 and 2.0.7 Community Edition releases.
>
> Json:
>
> {"Salary":1500.0,"Type":"Person","Address":[{"Zip":"JX2 
> MSX","Type":"Home","Street1":"13 Marge 
> Street","Country":"Holland","Id":"Address-28813211","City":"Amsterdam","From":"1996-02-01","To":"1998-01-01"},{"Zip":"90210","Type":"Work","Street1":"100
>  Hollywood Drive","Country":"USA","Id":"Address-11595040","City":"Los 
> Angeles","From":"2009-09-01"}],"Id":"Person-7464251","Name":"Stan"}
>
>
> Code:
>
> ODocument doc = new ODocument(json);
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to orient-database+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to