An open API service indexing awesome lists of open source software.

https://github.com/over-run/json

JSON for Java
https://github.com/over-run/json

Last synced: 2 months ago
JSON representation

JSON for Java

Awesome Lists containing this project

README

        

# json ![GitHub](https://img.shields.io/github/license/Over-run/json)

[![Java CI with Gradle](https://github.com/Over-Run/json/actions/workflows/gradle.yml/badge.svg?event=push)](https://github.com/Over-Run/json/actions/workflows/gradle.yml)
![GitHub all releases](https://img.shields.io/github/downloads/Over-Run/json/total)

![GitHub issues](https://img.shields.io/github/issues/Over-Run/json)
![GitHub pull requests](https://img.shields.io/github/issues-pr/Over-Run/json)
![GitHub closed issues](https://img.shields.io/github/issues-closed/Over-Run/json)
![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/Over-Run/json)

![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/Over-Run/json)
![Maven Central](https://img.shields.io/maven-central/v/io.github.over-run/json)
![Sonatype Nexus (Releases)](https://img.shields.io/nexus/r/io.github.over-run/json?server=https%3A%2F%2Fs01.oss.sonatype.org)

![Java Version](https://img.shields.io/badge/Java%20Version-11-red)

![GitHub Discussions](https://img.shields.io/github/discussions/Over-Run/json)

JSON for Java:coffee:.

[If there are any bugs, tell us!](https://github.com/Over-Run/json/issues/new)

## Use for depending on

```groovy
dependencies {
implementation "io.github.over-run:json:0.2.0"
}
```

## Example

```java
import org.overrun.json.*;

import java.io.*;

public class Example {
public static void main(String[] args) {
var json = new Json(true);
try (var w = new FileWriter("ex.json");
var bw = new BufferedWriter(w)) {
json.toJson(
ofObj("name",
ofStr("name", "value")
),
bw
);
}
}
}
```

## Who are using

- [Overrun Organization](https://github.com/Over-Run/)