© Peter Späth 2019
Peter SpäthLearn Kotlin for Android Developmenthttps://doi.org/10.1007/978-1-4842-4467-8_20

20. XML and JSON

Peter Späth1 
(1)
Leipzig, Germany
 

In Chapter 19 we learned how to include external libraries in our Android projects. Kotlin doesn’t have dedicated XML and JSON processing classes included in its standard library, so to achieve XML- and JSON-related tasks we use appropriate external libraries and add some convenience functions in the form of extension functions.

Note

Both XML and JSON are format specifications for structured data. You will frequently use them if your Android app communicates with the outside world for receiving or sending data in a standardized format.

This chapter assumes you have a sample app you can use ...

Get Learn Kotlin for Android Development: The Next Generation Language for Modern Android Apps Programming 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.