快速的.NET JSON 序列化库:Jil

jopen 10年前

一个快速的.NET JSON(反)序列化,基于 Sigil 构建并进行一些疯狂的优化。

支持以下类型(以及其中的任何组成的用户定义的类型):

  • Strings (including char)
  • Booleans
  • Integer numbers (int, long, byte, etc.)
  • Floating point numbers (float, double, and decimal)
  • DateTimes & DateTimeOffsets
    • See Configuration for further details
    </li>
  • Nullable types
  • Enumerations
    • Including [Flags]
    • </ul> </li>
    • Guids
      • Only the "D" format
      • </ul> </li>
      • IList<T> implementations
      • IDictionary<TKey, TValue> implementations where TKey is a string or enumeration
      • </ul>
        Serializing        using(var output = new StringWriter())      {          JSON.Serialize(              new              {                  MyInt = 1,                  MyString = "hello world",                  // etc.              },              output          );      }
        68747470733a2f2f692e696d6775722e636f6d2f4442707a4f79742e706e67.png

        项目主页:http://www.open-open.com/lib/view/home/1406107385164