Interface Codec
- All Known Implementing Classes:
JacksonCodec
public interface Codec
Codec to perform JSON encoding and decoding
-
Method Summary
-
Method Details
-
decode
Deocde a json String to an Object- 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
Encode an object to json String- Type Parameters:
T- The type of the Object- Parameters:
obj- The Object to encode- Returns:
- A json String
- Throws:
JsonCodecException- In case something goes wrong
-
decodeArrayContents
Decodes a json String to an array of Objects- Parameters:
json- The json String to decode- Returns:
- An array of Objects
- Throws:
JsonCodecException- In case something goes wrong
-