Flatten JSON extracted from https://github.com/NodeFly/node-foreman/blob/master/lib/envs.js