LunaChat v2.8.10 : Fixed some issues

このコミットが含まれているのは:
YukiLeafX committed 2019-06-03 17:48:25 +09:00
1 親 48f8841a67
コミット 16eb0ad1dd
10ファイル変更
+444 -90

検索条件に一致するファイルはありません

+18
ファイルの表示
@@ -0,0 +1,18 @@
package com.github.ucchyocean.lc.japanize;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
public class GoogleIME {
protected GoogleIME() {
}
public static String parseJson(String json) {
StringBuilder result = new StringBuilder();
new Gson().fromJson(json, JsonArray.class).forEach(response -> {
result.append(response.getAsJsonArray().get(1).getAsJsonArray().get(0).getAsString());
});
return result.toString();
}
}