express server that exports input to json file