Jackson Tutorial

Jackson is a very popular java library for working with the JSON format. Be it object serialization/deserialization or just parsing through JSON data. At the end of this tutorial, you’ll end up with this json file by writing nothing but Java. employee.json: { “id”: 305, “name”: “John”, “surname”: “Smith”, “email”: “[email protected]”, “address”: { “id”: 322,…

Details

Building a RESTful Service with Java

Continuing the previous article about RESTful services, this guide will walk you through building an example RESTful service in Java using spring boot and maven. The service will be able to respond to HTTP GET requests with JSON data, and use query parameters when building its response. You should start by creating a maven project…

Details

What’s a REST API?

To understand what a REST API is, we must first understand what a web service is in general. Web Services Web services are structures that allow methods used by applications to be run on servers and exchange values over the web. This way we can write methods that can be used in different applications or…

Details

Cross-Origin Resource Sharing (CORS)

What is CORS? Cross-Origin Resource Sharing (CORS) is a mechanism that uses additional HTTP headers to tell a browser to let a web application running at one origin (domain) have permission to access selected resources from a server at a different origin. A web application makes a cross-origin HTTP request when it requests a resource…

Details

Data Filtering with JSONPath

What is JSONPath JSONPath is a tool based on XPath that allows us to do with JSON what XPath allows us to do with XML. You might be asking: “What does XPath allow us to do for XML that we want to be able to do the same with JSON?” XPath (and by extension, JSONPath),…

Details

JSON Transformation with Jolt

What is Jolt Jolt is a Java based “JSON to JSON” transformation library. However, the fact that it is Java based is irrelevant to us as transformations aren’t done in Java, but rather in Jolt’s own transformation definition format. This is the main purpose of Jolt: To be able to transform JSON without being bound…

Details