jsong

JSON Generater from CSV File

License

License

Categories

Categories

JSON Data
GroupId

GroupId

com.uchicom
ArtifactId

ArtifactId

jsong
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

jsong
JSON Generater from CSV File
Source Code Management

Source Code Management

https://github.com/uchicom/jsong

Download jsong

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
com.uchicom : ui jar 0.1.0

Project Modules

There are no modules declared in this project.

jsong

json generator

Sample Program

Jsong jsong = new Jsong(File file); String jsonString1 = jsong.generate("001"); String jsonString2 = jsong.generate("002");

Sample Csv File

キー 001 002
{}
obj1 {}
prop1 String val1 val2
prop2 Number 22 33
prop3 Boolean true false
obj2 []
1 {}
prop4 String val3 va4
prop5 Number 3 4
prop6 Boolean true false
2 {}
prop4 String val3 va4
prop5 Number 3 4
prop6 Boolean true false
arr1 []
1 String val3 va4
2 String val3 va4

Sample config file

conf/jsong.properties key=キー type=型

keyで指定した列から右へ探索して列名が空の列までをkey列と判定する。

Versions

Version
0.1.0