Exemple #1
0
        public override object Serialize <T>(T input)
        {
            var ms = new WrappedMemoryStream();

            Utf8Json.JsonSerializer.Serialize(ms, input);
            ms.Flush();
            return(ms);
        }
Exemple #2
0
        public override object Serialize <T>(T input)
        {
            var ms = new WrappedMemoryStream();
            var sw = new StreamWriter(ms);

            Jil.JSON.Serialize(input, sw, Options.ISO8601);
            sw.Flush();
            ms.Flush();
            return(ms);
        }