Interface JsonUtils


public interface JsonUtils
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.google.gson.Gson
     
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static String
    prettyString(com.google.gson.JsonElement json)
     
    static com.google.gson.JsonElement
    read(InputStream stream)
     
    static com.google.gson.JsonElement
    read(Reader reader)
     
    static com.google.gson.JsonElement
    read(Path path)
     
    static com.google.gson.JsonElement
    sort(com.google.gson.JsonElement json)
     
    static String
    string(com.google.gson.JsonElement json)
     
    static void
    write(OutputStream stream, com.google.gson.JsonElement json, boolean pretty)
     
    static void
    write(Writer writer, com.google.gson.JsonElement json, boolean pretty)
     
    static void
    write(Path path, com.google.gson.JsonElement json, boolean pretty)
     
  • Field Details

    • GSON

      static final com.google.gson.Gson GSON
  • Method Details

    • read

      static com.google.gson.JsonElement read(Reader reader)
    • read

      static com.google.gson.JsonElement read(InputStream stream)
    • read

      static com.google.gson.JsonElement read(Path path) throws IOException
      Throws:
      IOException
    • write

      static void write(Writer writer, com.google.gson.JsonElement json, boolean pretty)
    • write

      static void write(OutputStream stream, com.google.gson.JsonElement json, boolean pretty)
    • write

      static void write(Path path, com.google.gson.JsonElement json, boolean pretty) throws IOException
      Throws:
      IOException
    • string

      static String string(com.google.gson.JsonElement json)
    • prettyString

      static String prettyString(com.google.gson.JsonElement json)
    • sort

      static com.google.gson.JsonElement sort(com.google.gson.JsonElement json)