Turn env vars into JSON object.