1 #!/usr/bin/python 2 # Copyright 2013 The Chromium Authors. All rights reserved. 3 # Use of this source code is governed by a BSD-style license that can be 4 # found in the LICENSE file. 5 6 # Encode current environment into json. 7 8 import json 9 import os 10 11 print json.dumps(dict(os.environ)) 12