summaryrefslogtreecommitdiff
path: root/reconfigure/parsers/jsonparser.py
diff options
context:
space:
mode:
authorAndrew Shadura <andrew@shadura.me>2015-08-20 15:58:27 +0200
committerAndrew Shadura <andrew@shadura.me>2015-08-20 15:58:27 +0200
commit25d6c405aff4167e801d0a4995083a56160b969e (patch)
tree070a400e9627b5b392dc3b57be4f889646ec2ea9 /reconfigure/parsers/jsonparser.py
parentff1408420159488a106492ccd11dd234967029b6 (diff)
Imported Upstream version 0.1.39
Diffstat (limited to 'reconfigure/parsers/jsonparser.py')
-rw-r--r--reconfigure/parsers/jsonparser.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/reconfigure/parsers/jsonparser.py b/reconfigure/parsers/jsonparser.py
index c1eaee6..1c55e97 100644
--- a/reconfigure/parsers/jsonparser.py
+++ b/reconfigure/parsers/jsonparser.py
@@ -14,7 +14,8 @@ class JsonParser (BaseParser):
return node
def load_node_rec(self, node, json):
- for k, v in json.iteritems():
+ for k in sorted(json.keys()):
+ v = json[k]
if isinstance(v, dict):
child = Node(k)
node.children.append(child)