+ # Allo non-standard JS comments in JSON
+ json_comment_re = re.compile(r'//.*$', re.MULTILINE)
+
+ def getRefState(self, refStateFileName):
+ data = open(refStateFileName, 'rt').read()
+ data = self.json_comment_re.sub('', data)
+ return json.loads(data, strict=False)
+