aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-02-17 13:18:04 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-17 13:18:04 -0800
commit82079fb7aaf000591300e0662301594901d56d06 (patch)
tree1b4b7f4ab3e3b7b2fde3e8134736280a2a095754 /dm
parent1e4e814c0396a2e1a283e2661c04e6b12eeb5265 (diff)
DM: move ext into key
Diffstat (limited to 'dm')
-rw-r--r--dm/DMJsonWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/dm/DMJsonWriter.cpp b/dm/DMJsonWriter.cpp
index 8f1fa7ed3c..e4a3d12d5b 100644
--- a/dm/DMJsonWriter.cpp
+++ b/dm/DMJsonWriter.cpp
@@ -54,7 +54,7 @@ void JsonWriter::DumpJson() {
result["key"]["name"] = gBitmapResults[i].name.c_str();
result["key"]["config"] = gBitmapResults[i].config.c_str();
result["key"]["source_type"] = gBitmapResults[i].sourceType.c_str();
- result["ext"] = gBitmapResults[i].ext.c_str();
+ result["options"]["ext"] = gBitmapResults[i].ext.c_str();
result["md5"] = gBitmapResults[i].md5.c_str();
root["results"].append(result);
@@ -101,7 +101,7 @@ bool JsonWriter::ReadJson(const char* path, void(*callback)(BitmapResult)) {
br.name = r["key"]["name"].asCString();
br.config = r["key"]["config"].asCString();
br.sourceType = r["key"]["source_type"].asCString();
- br.ext = r["ext"].asCString();
+ br.ext = r["options"]["ext"].asCString();
br.md5 = r["md5"].asCString();
callback(br);
}