View Javadoc
1   /*
2    * SPDX-FileCopyrightText: Copyright (c) 2013-2025 Yegor Bugayenko
3    * SPDX-License-Identifier: MIT
4    */
5   package com.jcabi.github;
6   
7   import com.jcabi.aspects.Immutable;
8   import jakarta.json.JsonObject;
9   import java.io.IOException;
10  
11  /**
12   * JSON readable.
13   *
14   * @since 0.4
15   */
16  @Immutable
17  public interface JsonReadable {
18  
19      /**
20       * Describe it in a JSON object.
21       * @return JSON object
22       * @throws IOException If there is any I/O problem
23       */
24      JsonObject json() throws IOException;
25  
26  }