JSON files

Is there any way to change the format from txt to json for the log files?