Ejemplo n.º 1
0
        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            string result = null;

            if (value is TwitterRelationshipConnections)
            {
                var existingValues =
                    Convert.ToString <TwitterRelationshipConnections>((TwitterRelationshipConnections)value);

                var jArray = JArray.FromObject(existingValues.Split(
                                                   new[] { ',', ' ' }, StringSplitOptions.RemoveEmptyEntries));
                result = jArray.ToString();
            }

            writer.WriteValue(result);
        }