Top "Json.net" questions

Json.

Where did IMvcBuilder AddJsonOptions go in .Net Core 3.0?

I've just upgraded my ASP web API project from .Net core 2.0 to 3.0. I was using services.AddMvc() .AddJsonOptions(options =>…

c# asp.net asp.net-core json.net asp.net-core-3.0
how to deserialize JSON into IEnumerable<BaseType> with Newtonsoft JSON.NET

given this JSON: [ { "$id": "1", "$type": "MyAssembly.ClassA, MyAssembly", "Email": "[email protected]", }, { "$id": "2", "$type": "MyAssembly.ClassB, MyAssembly", "Email": "me@here.…

c# json.net
What exceptions does Newtonsoft.Json.DeserializeObject throw?

What exceptions does Newtonsoft.Json.DeserializeObject throw? I want to handle them. http://james.newtonking.com/json/help/?topic=html/…

.net exception exception-handling json.net
Returning anonymous types with Web API

When using MVC, returning adhoc Json was easy. return Json(new { Message = "Hello"}); I'm looking for this functionality with the …

c# json asp.net-web-api json.net
How can I parse JSON string from HttpClient?

I am getting a JSON result by calling an external API. HttpClient client = new HttpClient(); client.BaseAddress = new Uri(url); …

c# json json.net httpclient
Using JSON.NET to return ActionResult

I'm trying to write a C# method that will serialize a model and return a JSON result. Here's my code: …

c# serialization json.net asp.net-mvc-5
Newtonsoft JSON - Dynamic Objects

I am using the Newtonsoft JSON library to perform dynamic deserialisation on incoming raw JSON and have found something that …

c# json dynamic deserialization json.net
JObject.Parse vs JsonConvert.DeserializeObject

What's the difference between JsonConvert.DeserializeObject and JObject.Parse? As far as I can tell, both take a string and …

c# json.net jsonserializer
Deserialize collection of interface-instances?

I would like to serialize this code via json.net: public interface ITestInterface { string Guid {get;set;} } public class TestClassThatImplementsTestInterface1 { …

c# json.net
'Newtonsoft.Json' already has a dependency defined for 'Microsoft.CSharp'

I'm installing NewtonSoft.Json for parsing Json in .NET application. When I'm using Visual Studio(VS) 2012, it can not be …

.net json.net jsonparser