Package dev.latvian.mods.klib.util
Interface JsonUtils
public interface JsonUtils
-
Field Summary
Fields -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic com.google.gson.JsonElementstatic StringprettyString(com.google.gson.JsonElement json) static com.google.gson.JsonElementread(InputStream stream) static com.google.gson.JsonElementstatic com.google.gson.JsonElementstatic com.google.gson.JsonElementsort(com.google.gson.JsonElement json) static Stringstring(com.google.gson.JsonElement json) static voidwrite(OutputStream stream, com.google.gson.JsonElement json, boolean pretty) static voidstatic void
-
Field Details
-
GSON
static final com.google.gson.Gson GSON
-
-
Method Details
-
parse
-
read
-
read
-
read
- Throws:
IOException
-
write
-
write
-
write
- Throws:
IOException
-
string
-
prettyString
-
sort
static com.google.gson.JsonElement sort(com.google.gson.JsonElement json)
-