Embed presentation
Download to read offline





JSON has an easier grammar and is more lightweight than XML, leading to better performance. It is also readable, transportation independent, and can represent almost any data. There are parsers available for JSON in every programming language. Jackson and Gson are two libraries that can be used to parse JSON in Java - with Jackson using ObjectMapper to read/write JSON strings to POJOs, and Gson using similar fromJson/toJson methods. The POJOs need default constructors when parsing with these libraries.



