add environments to json output