I am trying to read this data into R with Jsonlite:
"{\"Transaction\": [{\"RetailStoreID\":\"2005\",\"WorkstationID\":\"1\",\"SequenceNumber\":6944,\"Items\":[\"2017-12-04T16:10:32\"],\"ItemsElementName\":[\"BeginDateTime\"],\"OperatorID\":{\"Value\":\"15668\"},\"OperatorLogonID\":{\"Value\":\"15668\"},\"CurrencyCode\":\"DKK\",\"TlogName\":\"1162.tlg\",\"TlogOffset\":\"1095151\",\"FREEDOM_WorkstationType\":\"IS2\",\"Items1\":[{\"TillID\":\"1\",\"RevenueCenterID\":\"FAKTA\",\"ReceiptDateTime\":\"2017-12-04T16:10:32\",\"FREEDOM_TransactionEndCalloutOffline\":false,\"LineItem\":[{\"SequenceNumber\":4,\"Item\":{\"Items\":[{\"POSItemID\":\"5701049015356\"},{\"Level\":\"Department\",\"Text\":[\"999\"]}],\"ItemsElementName\":[\"POSIdentity\",\"MerchandiseHierarchy\"],\"Description\":\"K"
But I get the error:
parse error: premature EOF.
My code looks like this:
g<-readLines(file("poslog.json"), warn=FALSE,skipNul = TRUE)
json_df<-fromJSON(g,simplifyVector = TRUE)
Any hints? Thanks.