| Index: chrome/common/extensions/docs/build/directory.py
|
| diff --git a/chrome/common/extensions/docs/build/directory.py b/chrome/common/extensions/docs/build/directory.py
|
| index 316e0d633bc4a1f19e96281c510c4af2afd9857f..6f49bcfa02d3d78b0b7b87a7ddfccb0cfce45893 100644
|
| --- a/chrome/common/extensions/docs/build/directory.py
|
| +++ b/chrome/common/extensions/docs/build/directory.py
|
| @@ -12,6 +12,7 @@ import re
|
| import hashlib
|
| import zipfile
|
| import simplejson as json
|
| +import json_minify as minify
|
|
|
| # Make sure we get consistent string sorting behavior by explicitly using the
|
| # default C locale.
|
| @@ -48,7 +49,8 @@ def parse_json_file(path, encoding="utf-8"):
|
| raise Exception("Failed to read the file at %s: %s" % (path, msg))
|
|
|
| try:
|
| - json_obj = json.load(json_file, encoding)
|
| + json_str = json_file.read()
|
| + json_obj = json.loads(minify.json_minify(json_str), encoding)
|
| except ValueError, msg:
|
| raise Exception("Failed to parse JSON out of file %s: %s" % (path, msg))
|
| finally:
|
|
|