×

Consuming a RESTful Java web service using JSON-B and JSON-P

Add to wishlistAdded to wishlistRemoved from wishlist 0
Add to compare+
Duration

1 hour

level

Beginner

Rating

4.7

Review

49 Reviews

Enrolled

251 Enrolled

Learn how to consume RESTful Java web services using JSON-B and JSON-P. Discover the power of Java APIs for processing JSON data, enabling seamless communication between web services and front-end applications through effective data parsing and binding.

Add your review

At a Glance

Explore how to access a simple RESTful web service and consume its resources in Java using JSON-B and JSON-P.

You will learn how to access a REST service, serialize a Java object that contains a list of artists and their albums, and use two different approaches to deserialize the returned JSON resources. The first approach consists of using the Java API for JSON Binding (JSON-B) to directly convert JSON messages into Java objects. The second approach consists of using the Java API for JSON Processing (JSON-P) to process the JSON.

The REST service that provides the artists and albums resources is already written for you. When the server is running, this service is accessible at the http://localhost:9080/artists endpoint, which responds with the artists.json file.

You will implement the following two endpoints using the two deserialization approaches:

  • …​/artists/total to return the total number of artists in the JSON
  • …​/artists/total/<artist> to return the total number of albums in the JSON for the particular artist
If you are interested in learning more about REST services and how you can write them, read Creating a RESTful web service.

Created by 

The Open Liberty Project team

User Reviews

0.0 out of 5
0
0
0
0
0
Write a review

There are no reviews yet.

Be the first to review “Consuming a RESTful Java web service using JSON-B and JSON-P”

Your email address will not be published. Required fields are marked *

Consuming a RESTful Java web service using JSON-B and JSON-P
Consuming a RESTful Java web service using JSON-B and JSON-P
Edcroma
Logo
Compare items
  • Total (0)
Compare
0
https://login.stikeselisabethmedan.ac.id/produtcs/
https://hakim.pa-bangil.go.id/
https://lowongan.mpi-indonesia.co.id/toto-slot/
https://cctv.sikkakab.go.id/
https://hakim.pa-bangil.go.id/products/
https://penerimaan.uinbanten.ac.id/
https://ssip.undar.ac.id/
https://putusan.pta-jakarta.go.id/
https://tekno88s.com/
https://majalah4dl.com/
https://nana16.shop/
https://thamuz12.shop/
https://dprd.sumbatimurkab.go.id/slot777/
https://dprd.sumbatimurkab.go.id/
https://cctv.sikkakab.go.id/slot-777/
https://hakim.pa-kuningan.go.id/
https://hakim.pa-kuningan.go.id/slot-gacor/
https://thamuz11.shop/
https://thamuz15.shop/
https://thamuz14.shop/
https://ppdb.smtimakassar.sch.id/
https://ppdb.smtimakassar.sch.id/slot-gacor/
slot777
slot dana
majalah4d
slot thailand
slot dana
rtp slot
toto slot
slot toto
toto4d
slot gacor
slot toto
toto slot
toto4d
slot gacor
tekno88
https://lowongan.mpi-indonesia.co.id/
https://thamuz13.shop/
https://www.alpha13.shop/
https://perpustakaan.smkpgri1mejayan.sch.id/
https://perpustakaan.smkpgri1mejayan.sch.id/toto-slot/
https://nana44.shop/
https://sadps.pa-negara.go.id/
https://sadps.pa-negara.go.id/slot-777/
https://peng.pn-baturaja.go.id/
https://portalkan.undar.ac.id/
https://portalkan.undar.ac.id/toto-slot/
https://penerimaan.ieu.ac.id/
https://sid.stikesbcm.ac.id/