パッケージ nlp4j.util

クラス JsonUtils


  • public class JsonUtils
    extends Object
    導入されたバージョン:
    1.2.1.0
    作成者:
    Hiroki Oya
    • コンストラクタの詳細

      • JsonUtils

        public JsonUtils()
    • メソッドの詳細

      • write

        public static void write​(File outFile,
                                 String jsonData)
                          throws IOException
        パラメータ:
        outFile - the file to write
        jsonData - the JSON content write to the file
        例外:
        IOException - in case of an I/O error
      • prettyPrint

        public static String prettyPrint​(com.google.gson.JsonObject json)
        パラメータ:
        json - of JsonObject
        戻り値:
        String in Pretty Print
      • prettyPrint

        public static String prettyPrint​(com.google.gson.JsonElement json)
        パラメータ:
        json - of JsonElement
        戻り値:
        String in Pretty Print
        導入されたバージョン:
        1.3.1.0
      • prettyPrint

        public static String prettyPrint​(String json)
        パラメータ:
        json - of String
        戻り値:
        String in Pretty Print