java.lang.Object
com.github.wnameless.json.base.JacksonJsonCore
- All Implemented Interfaces:
JsonCore<JacksonJsonValue>
The Jackson 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
-
JacksonJsonCore
public JacksonJsonCore() -
JacksonJsonCore
public JacksonJsonCore(com.fasterxml.jackson.databind.ObjectMapper mapper)
-
-
Method Details
-
parse
Description copied from interface:JsonCoreCreates aJsonValueCoreby given JSON string.- Specified by:
parsein interfaceJsonCore<JacksonJsonValue>- Parameters:
json- any JSON string- Returns:
- a
JsonValueCore
-
parse
Description copied from interface:JsonCoreCreates aJsonValueCoreby given JSON string reader.- Specified by:
parsein interfaceJsonCore<JacksonJsonValue>- Parameters:
jsonReader- any JSON string reader- Returns:
- a
JsonValueCore - Throws:
IOException- if error occurs during reading
-