Jakarta JSON Processing with Japanese Joy

Joy is a Japanese implementation of the Jakarta JSON Processing (JSON-P) API.

To use it in a standalone Maven project, declare the following dependencies:


Now you can start to process JSON, just using the Jakarta EE APIs:

import java.io.StringReader;
import org.junit.jupiter.api.Test;
import jakarta.json.Json;

public class JsonpWithJoyTest {

    public void parseJSON() {
        var expected = "joy";
        var json = """
        try (var stringReader = new StringReader(json)){
            var jsonObject = Json.createReader(stringReader).readObject();
            var actual = jsonObject.getString("hello");
            assertEquals(expected, actual);


Post a Comment:
  • HTML Syntax: NOT allowed
Online Workshops
...the last 150 posts
...the last 10 comments