Json.NET (also known as Newtonsoft.Json) is a popular high-performance JSON framework for .NET.

learn more… | top users | synonyms

0
votes
1answer
44 views

Populate DataTable with API results

I am querying an API and populating a C# Datatable with the results, then using a Table Value Parameter to populate a SQL Server table with the results. This is my solution, but it is slow and takes ...
1
vote
0answers
59 views

JObject Pattern Matching: Merging partial WEB API JSON payload

This library [GitHub] helps merging partial WEB API JSON payload with existing prepopulated DTO objects. Let's say that JSON is represented by JObject from JSON.NET package. Naïve implementation ...
2
votes
5answers
559 views

Valid JSON Test

I'm currently using this method to test a string if it valid JSON. The JToken class depends on Newtonsoft.Json.Linq. ...
2
votes
0answers
163 views

ValidationAttribute to validate a string against a JSON schema

This is my implementation of an .NET ValidationAttribute to validate a string against a JSON schema. The JSON schema file is stored within the application as an ...
1
vote
1answer
154 views

Pool readers and streams with Json.NET

This code is built on Json.NET and gets called hundreds of times per second. My data starts in an ArraySegment<byte>. I wrap that in a ...
8
votes
2answers
2k views

Reference implementation of HTML-to-JSON converter for PCG

I have opened a puzzle at Programming Puzzles and Code Golf. The question is not perceived well (yet) and one of the reasons is that no reference implementation is provided. To mitigate this ...
5
votes
2answers
2k views

Checking for new software updates to the client

I have written a very simple web service with MVC and WebApi. Now I'm working on the client code which will be a WPF application (and soon Windows 8 Store/Phone app). What I have done works, but I'm ...
5
votes
1answer
2k views

Helper class to change property of string when serializing for Json.Net

Is there any way to simplify the following C# helper class to numerate a string for Json.Net? ...
3
votes
1answer
98 views

TravelAdvice class

I have never really had to use Json.net until now, so I'm very rusty at it. For that reason, I would appreciate it if someone could have a look over my code and let me know if the way I have done it ...
1
vote
1answer
17k views

Receiving data from a network stream

I basically have a couple of clients built with C#, using System.Net.Sockets TCP connections connecting to a node server backend. I've looked at tons of examples and everyone seems to receive data in ...
10
votes
2answers
1k views

NewtonSoft Json.Net serialiser

I'm just starting to develop more in C# after being mainly a VB.NET developer and was looking for someone to critique my implementation of a NewtonSoft Json.Net serialiser. Can you provide some ...