Based on fangyidong/json-simple. Not recommended as configuration file provider due to heavy limitations.
Add repository to the repositories
section:
<repository>
<id>okaeri-repo</id>
<url>https://storehouse.okaeri.eu/repository/maven-public/</url>
</repository>
Add dependency to the dependencies
section:
<dependency>
<groupId>eu.okaeri</groupId>
<artifactId>okaeri-configs-json-simple</artifactId>
<version>5.0.6</version>
</dependency>
Add repository to the repositories
section:
maven { url "https://storehouse.okaeri.eu/repository/maven-public/" }
Add dependency to the maven
section:
implementation 'eu.okaeri:okaeri-configs-json-simple:5.0.6'
- The
com.googlecode.json-simple:json-simple
is in factsimple
and does not allow for pretty print (intent) to be applied. - JSON does not support comments. All
@Header
and@Comment
values would not be added to the output configuration file.
Please use JsonSimpleConfigurer as your configurer:
new JsonSimpleConfigurer()