convert logs to json