diff options
author | 2013-06-14 10:04:51 -0700 | |
---|---|---|
committer | 2013-06-14 10:04:51 -0700 | |
commit | fc9c896c40cb94d5a3c16f01d92e873048706bbb (patch) | |
tree | f490df9593cceeca670f02d7da37e5cec67d74bf /java/src/com/android/inputmethod/research/JsonUtils.java | |
parent | 0631f46c0dea9462175f4aa501715ed8430a49a4 (diff) | |
parent | 14718ab898e2f23b078b9f25aa234c1e673517c7 (diff) | |
download | latinime-fc9c896c40cb94d5a3c16f01d92e873048706bbb.tar.gz latinime-fc9c896c40cb94d5a3c16f01d92e873048706bbb.tar.xz latinime-fc9c896c40cb94d5a3c16f01d92e873048706bbb.zip |
am 14718ab8: Merge "Log score, kind, and sourceDict for manual suggestion and gesture"
* commit '14718ab898e2f23b078b9f25aa234c1e673517c7':
Log score, kind, and sourceDict for manual suggestion and gesture
Diffstat (limited to 'java/src/com/android/inputmethod/research/JsonUtils.java')
-rw-r--r-- | java/src/com/android/inputmethod/research/JsonUtils.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/research/JsonUtils.java b/java/src/com/android/inputmethod/research/JsonUtils.java index 24cd8d935..63d524df7 100644 --- a/java/src/com/android/inputmethod/research/JsonUtils.java +++ b/java/src/com/android/inputmethod/research/JsonUtils.java @@ -94,12 +94,17 @@ import java.util.Map; .value(words.mIsPunctuationSuggestions); jsonWriter.name("isObsoleteSuggestions").value(words.mIsObsoleteSuggestions); jsonWriter.name("isPrediction").value(words.mIsPrediction); - jsonWriter.name("words"); + jsonWriter.name("suggestedWords"); jsonWriter.beginArray(); final int size = words.size(); for (int j = 0; j < size; j++) { final SuggestedWordInfo wordInfo = words.getInfo(j); - jsonWriter.value(wordInfo.toString()); + jsonWriter.beginObject(); + jsonWriter.name("word").value(wordInfo.toString()); + jsonWriter.name("score").value(wordInfo.mScore); + jsonWriter.name("kind").value(wordInfo.mKind); + jsonWriter.name("sourceDict").value(wordInfo.mSourceDict); + jsonWriter.endObject(); } jsonWriter.endArray(); jsonWriter.endObject(); |