JSON库对于.NET MicroframeworkJSON、NET、Microframework

2023-09-03 16:29:42 作者:半两月光

我正在使用的.Net Microframework光网络服务器和我想知道图书馆将工作有什么好为主要JSON序列化,但可能反序列化以及。

I'm running a light webserver using .Net Microframework and I was wondering what libraries would work well for for mainly JSON serialization, but possibly deserialization as well.

问题我已经找到了很多的JSON库是他们用花哨的.NET功能无法在MF用,而且更复杂的话我需要什么。

Problem I've found with a lot of JSON libraries is they use fancy .Net features not available in MF, and are more complicated then what I need.

我可以很容易地编写一个简单的库来完成我的任务,但我想知道,什么都可用。

I could easily write a simple library to accomplish my tasks but I was wondering if anything else was available.

感谢

推荐答案

麦克·琼斯上传了 JSON序列化和反序列化库 作为.NET Micro Framework的。

Mike Jones uploaded a JSON Serialization and Deserialization library for the .NET Micro Framework.

这是一个JSON(反)序列库,可以连接code(几乎)所有   C#对象转换成JSON字符串,然后返回。它管理原语(INT,   浮点,字符串),日期,对象(类,数组,字典),以及   对象内的对象(对象内等)。

This is a JSON (de)serialization library that can encode (nearly) any C# object into a JSON string, and back. It manages primitives (int, float, string), dates, objects (classes, arrays, dictionaries), and objects within objects (within objects, etc).

...

我还记得,它是关于13K的大小,所以它有点大,而且有点慢,但它的工作原理。

I recall, it's about 13k in size, so it's kinda big, and kinda slow, but it works.