Question No 7 Mention which markup language can be used in restful web api JSON XML None 1 2

Correct Answer:

1 & 2

Analyzing the Answer:

Both JSON (JavaScript Object Notation) and XML (Extensible Markup Language) are commonly used markup languages in RESTful web APIs for data exchange. RESTful APIs are not tied to a specific markup language; the choice depends on factors like the client application’s capabilities and preferences. JSON is often preferred for its lightweight nature and ease of parsing by JavaScript, while XML offers more structure and is suitable for complex data representations.

Analysis of other options:

A: JSON is a valid markup language for RESTful APIs.
B: XML is a valid markup language for RESTful APIs.
C: This option is incorrect because both JSON and XML are used.

Read more here: Source link