Add generation of environment.json

Add generation of environment.json