Fixed json_encoding multiple times of environments
Merge pull request #50 from jurianeven/fix/doublejsonencode

Fixed json_encoding multiple times of environments