如何在R中导入日志文件系统json文件?

时间:2016-06-01 05:40:20

标签: json r

我试图导入日志文件系统的数据文件。数据在json中收集并以txt下载。这是一个字符串示例:

  

{" index" :{}} {" time":1463687400," _dominio":" SAG"," _ambiente":   " PROD"," numChars":12029395," numLogs":598," numLines":89597,   " numWords":1025832," numDistinctWords":1356}

如何在R中解析此文件?

1 个答案:

答案 0 :(得分:0)

我们可以使用fromJSON

中的jsonlite
 library(jsonlite)
 fromJSON(str1)