json2props


License

License

Categories

Categories

JSON Data
GroupId

GroupId

fr.janalyse
ArtifactId

ArtifactId

json2props_2.11
Last Version

Last Version

0.5.2
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.11

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.12
org.scala-lang.modules : scala-xml_2.11 jar 1.3.0
org.json4s : json4s-jackson_2.11 jar 3.6.7

test (1)

Group / Artifact Type Version
org.scalatest : scalatest_2.11 jar 3.1.1

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.2
0.5.1
0.5.0