在具有OrientDB數據庫的Java應用程序中,在我有Vertex對象後,我需要在String對象中提取其屬性。該對象必須採用Json格式。 預期結果的一個例子是:從頂點實例獲取Json格式的字符串
{"@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"}
的作品,但我有編碼字符的問題。例如,而不是',我有\ u0027。 –