Added start of JSON output code.