News for hackers. Stuff that matters.
Re:Specifying JSON by drdaeman on Thursday May 26, 2016 @07:56AM (#11777215)
I have different experience.

I did some toy project in C# and haven't found handling JSON any painful. Maybe I just haven't hit the bad cases, though.

I don't exactly remember what I've used and what I wrote, but I think I had just installed some library (IIRC it was Json.NET), put some annotations on classes, and got my serialization. For deserialization I didn't wanted to write throwaway classes so I just made a JSONPath query and iterated over the result objects, looking at necessary properties. Nothing particularly different from how things are in, say, Python, except maybe for some extra type checking.

There are no comments on this comment yet.