fixes #5655 - sending correct json for ktenvironments paths