Edits the comments in proper JSON format