rpgmaker / NetJSON

Faster than Any Binary? Benchmark: http://theburningmonk.com/2014/08/json-serializers-benchmarks-updated-2/
MIT License
230 stars 29 forks source link

Emitting JSON dictionary's key into console? #185

Closed kenjiuno closed 6 years ago

kenjiuno commented 6 years ago

I have noticed that the following line emits dictionary's key title into console output:

https://github.com/rpgmaker/NetJSON/blob/d0bb1cda0aa802e20805d5f3e1a91ad5fa0e42ae/NetJSON/NetJSON.cs#L5189

title
[{"title":"図面"}]

Sample:

using System;
using System.Collections.Generic;

namespace ConsoleApp127 {
    class Program {
        static void Main(string[] args) {
            var table = NetJSON.NetJSON.Deserialize<IDictionary<string, object>[]>(@"[{""title"": ""\u56f3\u9762""}]");
            Console.WriteLine(NetJSON.NetJSON.Serialize(table));
        }
    }
}
rpgmaker commented 6 years ago

My bad. I left it in by mistake.

Thanks,

rpgmaker commented 6 years ago

It is resolved. Thanks for the catch