Top "Json.net" questions

Json.

Get Length of array JSON.Net

How can I get the length of a JSON Array I get using json.net in C#? After sending a …

c# json json.net xamarin
Generate JSON object with NewtonSoft in a single line

I'm using the JSON library NewtonSoft to generate a JSON string: JObject out = JObject.FromObject(new { typ = "photos" }); return out.…

c# json json.net
Deserialize nested JSON into C# objects

I am getting JSON back from an API that looks like this: { "Items": { "Item322A": [{ "prop1": "string", "prop2": "string", "prop3": 1, "…

c# json json.net deserialization json-deserialization
Default value for missing properties with JSON.net

I'm using Json.net to serialize objects to database. I added a new property to the class (which is missing …

c# json.net
Setting the default JSON serializer in ASP.NET MVC

I'm working on an existing application that has been partially converted over to MVC. Whenever a controller responds with a …

c# asp.net-mvc asp.net-mvc-4 json.net
Set default global json serializer settings

I'm trying to set the global serializer settings like this in my global.asax. var formatter = GlobalConfiguration.Configuration.Formatters.JsonFormatter; …

c# json asp.net-web-api json.net asp.net-mvc-5
Ignoring null fields in Json.net

I have some data that I have to serialize to JSON. I'm using JSON.NET. My code structure is similar …

c# .net json serialization json.net
Ensuring json keys are lowercase in .NET

Is there simple way using JSON in .NET to ensure that the keys are sent as lower case? At the …

.net json json.net
How to store JSON in an entity field with EF Core?

I am creating a reusable library using .NET Core (targeting .NETStandard 1.4) and I am using Entity Framework Core (and new …

c# json.net entity-framework-core
Find and return JSON differences using newtonsoft in C#?

I'd like to get a list of the JSON parts that don't match when doing a comparison using Newtonsoft. I …

c# json json.net