parse logs to json and out to angular