Json Library for .Net Microframework
Asked Answered
P

3

7

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.

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.

Thanks

Proboscis answered 25/2, 2011 at 19:50 Comment(1)
Did you end up writing your own library?Albie
M
3

There is a lightweight JSON parser in the NetduinoHelpers library that is specifically built to minimize footprint: http://netduinohelpers.codeplex.com/

Monoplegia answered 24/8, 2011 at 23:0 Comment(1)
Good stuff there, but as far as I see there is only a parser (deserializer) not a serializer.Klayman
K
3

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

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).

...

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

Kidwell answered 29/1, 2013 at 22:38 Comment(0)
C
0

Not sure if you've tried Json.NET as it has solution files for Silverlight and WindowsPhone. The implication being that if it works in restricted environments like those it may work in the .NET Microframework.

Cretin answered 25/2, 2011 at 22:46 Comment(1)
I believe the problem with Json.NET is its heavy use of Regex which is (as yet) not supported in NETMF.Xenogamy

© 2022 - 2024 — McMap. All rights reserved.