Add ability to print in JSON format