implements json formatter for profiles