Esempio n. 1
0
        //[Benchmark]
        public void WriteArrayUtf8Json()
        {
            global::Utf8Json.JsonWriter json = new global::Utf8Json.JsonWriter(_output);

            json.WriteBeginObject();
            json.WritePropertyName("message");
            json.WriteBeginArray();
            for (int i = 0; i < _longs.Length; i++)
            {
                json.WriteInt64(_longs[i]);
            }
            json.WriteEndArray();
            json.WriteEndObject();
        }