/// <summary> /// Serializes to json. /// </summary> /// <param name="serialization">The serialization.</param> /// <returns></returns> public override string Serialize(Dictionary <string, object> serialization) { Dictionary <string, object> response = SerializedResult.BuildResponse(_serializableObject, serialization); Dictionary <string, object> wrapper = new Dictionary <string, object>(); wrapper.Add("response", response); return(base.Serialize(wrapper)); }
/// <summary> /// Serializes to json. /// </summary> /// <param name="serialization">The serialization.</param> /// <returns></returns> public override string Serialize(Dictionary <string, object> serialization) { return(base.Serialize(SerializedResult.BuildResponse(_serializableObject, serialization))); }