Category - JSON
Results 1 - 5 of 85
02 Feb 2021 02 Feb 2021 0 Comments  3509 Views
Here Mudassar Ahmed Khan has explained with an example, how to use the Newtonsoft.Json.JsonConvert library for Serializing and Deserializing JSON using C# and VB.Net.

The JSON string will be first downloaded from an API using WebClient class and then will be deserialized to JSON object using the Deserialize function of the JSON.Net library.

Finally, the JSON object will be again serialized to JSON string using the Serialize function of the JSON.Net library in ASP.Net using C# and VB.Net.
15 Jan 2021 15 Jan 2021 0 Comments  1205 Views
Here Mudassar Ahmed Khan has explained with an example, how to change the default Camel Case JSON Output in ASP.Net Core.

The default Camel Case JSON property names tend to break the Client Side JavaScript and hence in order to remove it, the default JSON Serialization needs to be replaced with Newtonsoft.Json Serialization in ASP.Net Core.
15 Jul 2020 15 Jul 2020 0 Comments  24641 Views
ASP.Net  AJAX  jQuery  JSON  MVC  Core
Here Mudassar Ahmed Khan has explained with an example, how to return JSON from Controller in ASP.Net Core MVC.

The Controller’s Action method will be called using jQuery AJAX function and JSON data will be returned back to the View using JsonResult class in ASP.Net Core MVC.
15 Jul 2020 15 Jul 2020 0 Comments  11679 Views
ASP.Net  AJAX  jQuery  JSON  MVC  Core
Here Mudassar Ahmed Khan has explained with an example, how to solve the issue of jQuery AJAX POST call not working in ASP.Net Core MVC.

This article will illustrate with a simple example, how to make an AJAX POST call to Controller using jQuery in ASP.Net Core MVC.
14 Jul 2020 14 Jul 2020 0 Comments  4687 Views
Here Mudassar Ahmed Khan has explained with an example, how to solve the issue of Lowercase JSON Property Names in ASP.Net Core MVC.

In order to solve this problem, the default ContractResolver needs to be replaced with the ContractResolver of Newtonsoft JSON Serializer in ASP.Net Core MVC.
Results 1 - 5 of 85