java.lang.Object
com.github.wnameless.json.base.GsonJsonCore
- All Implemented Interfaces:
JsonCore<GsonJsonValue>
The GSON implementation of
JsonCore.- Author:
- Wei-Ming Wu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates aJsonValueCoreby given JSON string reader.Creates aJsonValueCoreby given JSON string.
-
Constructor Details
-
GsonJsonCore
public GsonJsonCore() -
GsonJsonCore
public GsonJsonCore(com.google.gson.Gson gson)
-
-
Method Details
-
parse
Description copied from interface:JsonCoreCreates aJsonValueCoreby given JSON string.- Specified by:
parsein interfaceJsonCore<GsonJsonValue>- Parameters:
json- any JSON string- Returns:
- a
JsonValueCore
-
parse
Description copied from interface:JsonCoreCreates aJsonValueCoreby given JSON string reader.- Specified by:
parsein interfaceJsonCore<GsonJsonValue>- Parameters:
jsonReader- any JSON string reader- Returns:
- a
JsonValueCore - Throws:
IOException- if error occurs during reading
-