Uniscala JSON

A compact JSON library written in Scala.

License

License

Categories

Categories

Scala Languages Net JSON Data
GroupId

GroupId

net.uniscala
ArtifactId

ArtifactId

uniscala-json_2.9.2
Last Version

Last Version

0.3
Release Date

Release Date

Type

Type

jar
Description

Description

Uniscala JSON
A compact JSON library written in Scala.
Project URL

Project URL

https://github.com/stainsby/uniscala-json
Project Organization

Project Organization

Sustainable Software Pty Ltd
Source Code Management

Source Code Management

https://github.com/stainsby/uniscala-json

Download uniscala-json_2.9.2

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.9.2

test (1)

Group / Artifact Type Version
org.specs2 : specs2_2.9.2 jar 1.12.3

Project Modules

There are no modules declared in this project.

README - Uniscala JSON library

About

Uniscala JSON is a compact JSON library written in Scala. Other than the Scala runtime libraries, it has no other dependencies. The library is purely for generating, parsing, rendering and transforming JSON. There are no domain data/object mapping or binding features.

Uniscala JSON parses and generates strict JSON. For example, keys in JSON object texts must be enclosed in " characters (unlike Javascript).

Internally, for simplicity, JSON integers and floats are converted into Scala longs and doubles. Thus, this library may not be suitable for applications requiring more digits or accuracy than the Scala Long and Double types supply.

The library has been tested under Scala 2.9.3 and 2.10.1:

> test
...
[info] Passed: : Total 2055, Failed 0, Errors 0, Passed 2055, Skipped 0

License

Copyright 2012 Sustainable Software Pty Ltd. Licensed under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Contributors

Uniscala JSON is managed and developed by Sam Stainsby at Sustainable Software Pty Ltd

Usage

See the Usage document.

API documentation

See the scaladoc.

Including the library in your project

Uniscala JSON releases are available in the mainstream repositories. Depending on your Scala version, use:

<dependency>
  <groupId>net.uniscala</groupId>
  <artifactId>uniscala-json_2.9.3</artifactId>
  <version>0.3</version>
</dependency>

or

<dependency>
  <groupId>net.uniscala</groupId>
  <artifactId>uniscala-json_2.10</artifactId>
  <version>0.3</version>
</dependency>

in your pom.xml, or using SBT, in your build.sbt:

"net.uniscala" %% "uniscala-json" % "0.3"

There are builds available for Scala versions 2.9.3 and 2.10.

Building

As of version 0.3, Uniscala JSON is built in a fairly standard way using SBT. In previous versions, we used Maven.

History

  • version 0.4
    • added convenient unwrapping methods to JsonObject: getString, getBoolean, etc.
    • removed the redundant (and badly named) :+ operator from JsonObject
    • JsonPath became a case class that is more amenable to pattern matching
    • moved from Specs2 to Scalatest for testing, since the latter seems much faster

Versions

Version
0.3