Package com.github.wnameless.json.base
Interface JsonCore<JVC extends JsonValueCore<JVC>>
-
- Type Parameters:
JVC- the type of a JSON implementation wrapper
- All Known Implementing Classes:
GsonJsonCore,JacksonJsonCore
public interface JsonCore<JVC extends JsonValueCore<JVC>>JsonCoreprovides a wrapper to all kinds of JSON parsers.- Author:
- Wei-Ming Wu
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JsonValueCore<JVC>parse(Reader jsonReader)Creates aJsonValueCoreby given JSON string reader.JsonValueCore<JVC>parse(String json)Creates aJsonValueCoreby given JSON string.
-
-
-
Method Detail
-
parse
JsonValueCore<JVC> parse(String json)
Creates aJsonValueCoreby given JSON string.- Parameters:
json- any JSON string- Returns:
- a
JsonValueCore
-
parse
JsonValueCore<JVC> parse(Reader jsonReader) throws IOException
Creates aJsonValueCoreby given JSON string reader.- Parameters:
jsonReader- any JSON string reader- Returns:
- a
JsonValueCore - Throws:
IOException- if error occurs during reading
-
-