pass environment as custom json