Skip to content

ph json

Philip Helger edited this page Apr 8, 2026 · 3 revisions

Simple library to read, write and manipulate JSON documents using a custom parser. No external dependencies beyond ph-io.

Highlights:

  • JsonReader - read JSON from strings, streams or resources
  • JsonWriter - write JSON with configurable formatting
  • JsonObject / JsonArray / JsonValue - mutable JSON data model
  • IJson / IJsonObject / IJsonArray - read-only JSON interfaces
  • JsonConverter - type conversion for JSON values
  • JsonVisitor - visitor pattern for tree traversal

Maven usage

Add the following to your pom.xml to use this artifact:

<dependency>
  <groupId>com.helger.commons</groupId>
  <artifactId>ph-json</artifactId>
  <version>x.y.z</version>
</dependency>

Note: the Maven groupId changed in v10 from com.helger to com.helger.commons

Clone this wiki locally