json2props


License

License

Categories

Categories

JSON Data
GroupId

GroupId

fr.janalyse
ArtifactId

ArtifactId

json2props_2.10
Last Version

Last Version

0.5.1
Release Date

Release Date

Type

Type

jar
Description

Description

json2props
json2props
Project URL

Project URL

https://github.com/dacr/json2props
Project Organization

Project Organization

fr.janalyse
Source Code Management

Source Code Management

https://github.com/dacr/json2props

Download json2props_2.10

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.10.7
org.json4s : json4s-jackson_2.10 jar 3.6.7

test (1)

Group / Artifact Type Version
org.scalatest : scalatest_2.10 jar 3.0.8

Project Modules

There are no modules declared in this project.

json2props Build Status License Maven Scaladex

JSON flattened into key value pairs.

JSon2Properties.flattenJSon function flatten a JSon tree into a map of pairs.

{"a" : 1 } becomes Map("a"->1)
{"a" : { "b" : 1 } } becomes Map("a.b" -> 1)
{"a" : { "b" : [100, 200] } } becomes Map("a.b.0" -> 100, "a.b.1" -> 200)

In your build.sbt, add this :

libraryDependencies += "fr.janalyse" %% "json2props" % version

Versions

Version
0.5.1
0.5.0