Quick refactoring into ternary.
Adding json and xml to Comments.