concept JSON in category .net

This is an excerpt from Manning's book Microservices in .NET Core: with examples in Nancy.
You can now rerun the application and again point your browser to http://localhost:5000. Your browser will hit the route on your Nancy module and show an error page. Why? Because Nancy can’t find a view for the / route. This is OK. The intention of this little application isn’t to serve HTML to a browser, but to serve JSON or XML data. To test that your application can do that, use Postman or a similar tool to make an HTTP GET request to the root of your application with an Accept header with the value application/json. The test in Postman is shown in figure 1.12.
So far, we’ve focused on exchanging data in JSON format. I’ve mentioned in passing that XML is supported equally by all the endpoints you’ve implemented with Nancy. (Nancy comes with JSON and XML serialization and deserialization out of the box.) These two options cover most situations, but there are reasons you might want something else:
If you need to exchange a lot of data, a more compact format may be needed. Text-based formats such as JSON and XML are a lot more verbose than binary formats like protocol buffers. If you need a more structured format than JSON that’s still human readable, you may want to use YAML.

This is an excerpt from Manning's book ASP.NET AJAX in Action.
The name of the XMLHttpRequest object is somewhat misleading because data can be transferred in the form of XML or other text-based formats. The ASP.NET AJAX framework relies heavily on a format called JavaScript Object Notation (JSON) to deliver data to and from the server. Examples of JSON and how the ASP.NET AJAX framework uses it are scattered throughout this book. You can find a more thorough explanation of JSON in chapter 3.
JSON is a textual data-interchange format. Its purpose is to offer a representation of structured data that is independent of the language or platform used. This makes it possible to interchange data between applications written in different languages and run the applications on different machines. Compared to XML, which is probably the best-known data-interchange format, JSON has a compact syntax. This means that often, less bandwidth is required to transmit JSON data through a network.