Added code for output of basic data in JSON format.