- java.lang.Object
-
- com.github.wnameless.json.base.JacksonJsonCore
-
- All Implemented Interfaces:
JsonCore<JacksonJsonValue>
public class JacksonJsonCore extends Object implements JsonCore<JacksonJsonValue>
The Jackson implementation ofJsonCore.- Author:
- Wei-Ming Wu
-
-
Constructor Summary
Constructors Constructor Description JacksonJsonCore()JacksonJsonCore(com.fasterxml.jackson.databind.ObjectMapper mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JacksonJsonValueparse(Reader jsonReader)Creates aJsonValueCoreby given JSON string reader.JacksonJsonValueparse(String json)Creates aJsonValueCoreby given JSON string.
-
-
-
Method Detail
-
parse
public JacksonJsonValue parse(String json)
Description copied from interface:JsonCoreCreates aJsonValueCoreby given JSON string.- Specified by:
parsein interfaceJsonCore<JacksonJsonValue>- Parameters:
json- any JSON string- Returns:
- a
JsonValueCore
-
parse
public JacksonJsonValue parse(Reader jsonReader) throws IOException
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
-
-