ph json - phax/ph-commons GitHub Wiki
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
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