예제 #1
0
            /// <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));
            }
예제 #2
0
 /// <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)));
 }