[lit] Format JSONMetricValue strings better.

llvm-svn: 226672
This commit is contained in:
Eric Fiselier 2015-01-21 16:38:31 +00:00
parent 3c898c2119
commit dea770aeb3
1 changed files with 2 additions and 1 deletions

View File

@ -91,7 +91,8 @@ class JSONMetricValue(MetricValue):
self.value = value
def format(self):
return str(self.value)
e = JSONEncoder(indent=2, sort_keys=True)
return e.encode(self.value)
def todata(self):
return self.value