main
1json.id environment.id
2json.name environment.name
3json.apiKey environment.api_key
4json.service environment.try(:service).try(:id)