jackson dataformat toml

Jackson toml dataformat base on json/toml converters

License

License

Categories

Categories

Data Jackson JSON ORM
GroupId

GroupId

com.teesoft
ArtifactId

ArtifactId

jackson-dataformat-toml
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

jackson dataformat toml
Jackson toml dataformat base on json/toml converters
Project URL

Project URL

https://github.com/justdb/jackson-dataformat-toml
Project Organization

Project Organization

teesoft.com
Source Code Management

Source Code Management

https://github.com/justdb/jackson-dataformat-toml

Download jackson-dataformat-toml

How to add to project

<!-- https://jarcasting.com/artifacts/com.teesoft/jackson-dataformat-toml/ -->
<dependency>
    <groupId>com.teesoft</groupId>
    <artifactId>jackson-dataformat-toml</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.teesoft/jackson-dataformat-toml/
implementation 'com.teesoft:jackson-dataformat-toml:1.0'
// https://jarcasting.com/artifacts/com.teesoft/jackson-dataformat-toml/
implementation ("com.teesoft:jackson-dataformat-toml:1.0")
'com.teesoft:jackson-dataformat-toml:jar:1.0'
<dependency org="com.teesoft" name="jackson-dataformat-toml" rev="1.0">
  <artifact name="jackson-dataformat-toml" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.teesoft', module='jackson-dataformat-toml', version='1.0')
)
libraryDependencies += "com.teesoft" % "jackson-dataformat-toml" % "1.0"
[com.teesoft/jackson-dataformat-toml "1.0"]

Dependencies

compile (3)

Group / Artifact Type Version
com.fasterxml.jackson.core : jackson-databind jar 2.10.1
com.fasterxml.jackson.core : jackson-core jar 2.10.1
org.tomlj : tomlj jar 1.0.0

test (1)

Group / Artifact Type Version
junit : junit jar 3.8.1

Project Modules

There are no modules declared in this project.

jackson-dataformat-toml

FOSSA Status

jackson dataformat for toml. The reader is based on tomlj and the writer is based on javascript toml parser @iarna/toml.

** TOML 0.5.0 **

Get it

Maven

Functionality of this package can be used using following Maven dependency:

<dependencies>
  ...
  <dependency>
    <groupId>com.teesoft</groupId>
    <artifactId>jackson-dataformat-toml</artifactId>
    <version>1.0</version>
  </dependency>
  ...
</dependencies>

Use it

With simple 2-property POJO like this:

// Note: can use getters/setters as well; here we just use public fields directly:
public class MyValue {
  public String name;
  public int age;
  // NOTE: if using getters/setters, can keep fields `protected` or `private`
}
TOMLMapper mapper = new TOMLMapper();
MyValue value = new MyValue();
value.name = "justdb";
value.age = 1;
String toml = mapper.writeValueAsString(value);
mapper.writeValue(new File("target/test.toml"), value);
MyValue valueNew = mapper.readValue(toml, MyValue.class);

License

FOSSA Status

Versions

Version
1.0