July 2017
Beginner to intermediate
715 pages
17h 3m
English
JSON is becoming more and more popular as a way of communicating between web services, steadily displacing XML and other formats. Knowing how to process it lets you extract data from a huge variety of data sources available on the Internet.
There are quite a few JSON libraries available for Java. Jackson is one of them and there is its simplified version, called jackson-jr, which works for most simple cases when all we need is to quickly extract data from JSON. To add it, use the following:
<dependency> <groupId>com.fasterxml.jackson.jr</groupId> <artifactId>jackson-jr-all</artifactId> <version>2.8.1</version> </dependency>
To illustrate it, let's consider a simple API that returns JSON. We can use http://www.jsontest.com/, which ...
Read now
Unlock full access