© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
S. PatniPro RESTful APIs with Micronauthttps://doi.org/10.1007/978-1-4842-9200-6_3

3. Introduction: XML and JSON

Sanjay Patni1  
(1)
Santa Clara, CA, USA
 

Abstract

This chapter introduces basic concepts about XML and JSON. At the end of this chapter, there is an exercise to demonstrate XML and JSON responses from a Micronaut app.

What Is XML?

eXtensible Markup Language (XML) is a text-based markup language which is a standard for data interchange on the Web. As with HTML, you identify data using tags (identifiers enclosed in angle brackets, like this: <...>). Collectively, the tags are known as “markup.” It puts a label on a piece of data that identifies it (e.g., ...

Get Pro RESTful APIs with Micronaut: Build Java-Based Microservices with REST, JSON, and XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.