Skip to content

Files

Latest commit

 

History

History

json-simple

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Okaeri Configs | JSON (json-simple)

Based on fangyidong/json-simple. Not recommended as configuration file provider due to heavy limitations.

Installation

Maven

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>

Gradle

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'

Limitations

  • The com.googlecode.json-simple:json-simple is in fact simple 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.

Usage

Please use JsonSimpleConfigurer as your configurer:

new JsonSimpleConfigurer()