Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

minimal-json

> 编程语言
Open source

A fast and small JSON parser and writer for Java

744 stars0 likes1 views
WebsiteGitHub

About

A fast and small JSON parser and writer for Java

minimal-json [UNMAINTAINED]

I'm glad to see that minimal-json is still used, however, I can't maintain this project anymore. If anyone actively maintains a fork that follows the ideas of minimal-json, I'm happy to link to this repository here. Thank you. A fast and minimal JSON parser and writer for Java. It's not an object mapper, but a bare-bones library that aims at being

  • minimal: no dependencies, single package with just a few classes, small download size ( {"name": "Alice", "points": 23}

JsonArray user = Json.array().add("Bob").add(42); // -> ["Bob", 42]


You can also create JSON arrays conveniently from Java arrays such as `String[]`, `int[]`, `boolean[]`, etc.:

```java
String[] javaNames = {"Alice", "Bob"};
JsonArray jsonNames = Json.array(names);

Modify JSON arrays and objects

You can replace or remove array elements based on their index. The index must be valid.

java
jsonArray.set(1, 24);
jsonArray.remove(1);

Likewise, members of JSON objects can be modified by their name. If the name does not exist, set will append a new member.

java
jsonObject.set("quantity", 24);
jsonObject.remove("quantity");

JsonObject also provides a merge method that copies all members from a given JSON object.

java
jsonObject.merge(otherObject);

Output JSON

The toString method of a JsonValue returns valid JSON strings. You can also write to a java.io.Writer using writeTo:

java
String json = jsonValue.toString();
jsonValue.writeTo(writer);

Both methods accept an additonal parameter to enable formatted output:

java
String json = jsonValue.toString(WriterConfig.PRETTY_PRINT);
jsonValue.writeTo(writer, WriterConfig.PRETTY_PRINT);

…

xml

  com.eclipsesource.minimal-json
  minimal-json
  0.9.5

Development snapshots are available on oss.sonatype.org.

Build

To build minimal-json on your machine, checkout the repository, cd into it, and call:

mvn clean install

A continuous integration build is running at Travis-CI.

License

The code is available under the terms of the MIT License.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Java

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言