in java application orientdb database, after have vertex object, need extract properties in string object. object must in json format. example of expected result is:
{"@type":"d","@rid":"#13:1093","@version":1,"@class":"v_notification","lastupdatedate":"2016-07-20 16:45:31","lastupdateuser":"#12:41","creationdate":"2016-07-20 16:45:31","creationuser":"#12:41","type":"user_added_to_share_made_upload","description":"user_added_to_share_made_upload","sphereid":"#16:18","out_e_notificationuser":["#45:1091"],"deleted":false,"version":0,"isread":false,"@fieldtypes":"lastupdatedate=t,lastupdateuser=x,creationdate=t,creationuser=x,out_e_notificationuser=g"}
you use
orientvertex v=g.getvertex("#9:0"); odocument d=v.getrecord(); string json=d.tojson();
hope helps
Comments
Post a Comment