rojoma-json-v3-grisu


License

License

Public domain
Categories

Categories

JSON Data
GroupId

GroupId

com.rojoma
ArtifactId

ArtifactId

rojoma-json-v3-grisu_2.10
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

rojoma-json-v3-grisu
rojoma-json-v3-grisu
Project URL

Project URL

http://www.github.com/rjmac/rojoma-json-grisu
Project Organization

Project Organization

com.rojoma

Download rojoma-json-v3-grisu_2.10

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.10.4
com.rojoma : grisu-scala_2.10 jar 1.0.0
com.rojoma : rojoma-json-v3_2.10 jar 3.3.0

test (1)

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

Project Modules

There are no modules declared in this project.

rojoma-json-grisu

This is an extension for rojoma-json to use grisu-scala to serialize JNumbers which containDoubles. To use it, simply ensure the jar is on the classpath at startup. rojoma-json will detect (via the Java service provider interface system) and use it.

The following code will verify it has been loaded properly:

import com.rojoma.json.v3.extensions.DoubleWriter
import com.rojoma.json.v3.grisu.GrisuDoubleWriter

if(DoubleWriter.doubleWriter.isInstanceOf[GrisuDoubleWriter])
  println("Using GrisuDoubleWriter")
else
  println("Not using GrisuDoubleWriter")

It is published on Maven central, so setting up SBT is as simple as

libraryDependencies += "com.rojoma" %% "rojoma-json-v3-grisu" % "1.0.0"

While for Maven, the pom snippet is:

<dependencies>
  <dependency>
    <groupId>com.rojoma</groupId>
    <artifactId>rojoma-json-v3-grisu_${scala.version}</artifactId>
    <version>1.0.0</version>
  </dependency>
</dependencies>

rojoma-json-v3-grisu is published for Scala version 2.10 and 2.11.

Versions

Version
1.0.0