infinite loop & JSON output

Will now continue to log the data. All output should be JSON now.