issue #5: stock data output to json file