fixes #5655 - sending correct json for ktenvironments paths

@komidore64 for some reason has to parse data back as json first using `angular.fromJson(data)`
and had to keep isArray as true for the environments to display in  /lifecycle_environments