move environ variable to a json file