parse logs to json