我有一个json文件log.json,它包含以下json:
{ "time": "2018-04-26 10:28:40.1546", "function": "test", "line": "632", "userWindows": "Kenny ", "level": "INFO", "message": "Hello" }
{ "time": "2018-04-26 10:28:40.1546", "function": "test", "line": "633", "userWindows": "Kenny ", "level": "INFO", "message": "Logon by user: Kenny from ip_address:127.0.0.1" }
它知道它不是正确的json格式,它应该是[{],{}]而不是{} {}。 但我怎么能设法做到这一点呢?我有点失落,有人可以给我带头吗?
我的第一个想法是反序列化文件并使用它来填充gridivew。