Class JacksonCodec
java.lang.Object
org.astonbitecode.j4rs.json.JacksonCodec
- All Implemented Interfaces:
Codec
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JacksonCodec
public JacksonCodec()
-
-
Method Details
-
decode
Description copied from interface:CodecDeocde a json String to an Object- Specified by:
decodein interfaceCodec- Type Parameters:
T- The type of the object- Parameters:
json- The jsonclassName- A class name- Returns:
- An Object
- Throws:
JsonCodecException- In case something goes wrong
-
encode
Description copied from interface:CodecEncode an object to json String- Specified by:
encodein interfaceCodec- Parameters:
obj- The Object to encode- Returns:
- A json String
- Throws:
JsonCodecException- In case something goes wrong
-
decodeArrayContents
Description copied from interface:CodecDecodes a json String to an array of Objects- Specified by:
decodeArrayContentsin interfaceCodec- Parameters:
json- The json String to decode- Returns:
- An array of Objects
- Throws:
JsonCodecException- In case something goes wrong
-