//    Copyright (c) 2011, The Outercurve Foundation.
/// It is recommended to set the the default json serializers during application startup.
/// Serializes the object to json string.
/// Deserializes the json string.
/// The type of object.
/// Occurs when deserialization fails.
// other type we just return it.
/// Deserialize the json string to object.