Encodes a structured object to a serialized string.
object is the object to serialize (typically Map or List).
object
Returns the serialized string in the specific format (JSON/XML etc.).
String encode(T object);