COMPUTER NETWORKING

APPLICATION LAYER

CLIENT SERVER PARADIGM

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is JSON or XML used for?
A
Standard methods for transferring data between a server and an application
B
For uploading files to a server
C
Requesting a webpage
D
Enables CRUD to be mapped to data SQL functions
Explanation: 

Detailed explanation-1: -The JSON format is used to store and transmit data, while XML is used to represent data in a machine-readable way. JSON has been gaining popularity as a storage medium for web applications because of its simplicity. In contrast, XML is still the go-to choice for transmitting structured data over the web.

Detailed explanation-2: -Yes, surely using XML and JSON you can create and object on client (better yet in a common class that can be used both on server and client), populate the object with data and serialize it on client, send it over to server, de-serialize it to object again and use it.

Detailed explanation-3: -Send JSON Data from the Client Side Use JSON. stringify() to convert the JavaScript object into a JSON string. Send the URL-encoded JSON string to the server as part of the HTTP Request. This can be done using the HEAD, GET, or POST method by assigning the JSON string to a variable.

Detailed explanation-4: -It can be used in many applications but is especially common for transferring data between servers and web applications or web-connected devices. This is because those applications can often only receive data as text, and JSON is text-based.

There is 1 question to complete.