View on GitHub

Argonaut

JSON library

Download this project as a .zip file Download this project as a tar.gz file

Argonaut

What is Argonaut?

Argonaut is a JSON library built using Scala. It provides functionality to specify how to convert to and from JSON for an arbitrary Scala object. It relies on the Scala parser libraries (util.parsing.combinator) to read an arbitrary string into a JSON data type, which is known to be slow. Argonaut is licenced under BSD3 (see etc/LICENCE).

The JSON data type also implements a large combinator library in an effort to make it easy to use, however, much of this library would be better implemented by exploiting partial lenses and a zipper.

Argonaut is intended for simple applications that use specification-compliant JSON. Argonaut is released under a BSD3 open-source licence.

Features

SBT Settings

To use argonaut, add the following repositories to your build:

override lazy val settings =
  super.settings ++
    Seq(resolvers := Seq(
      "mth.io snapshots"  at "http://repo.mth.io/snapshots"
    , "mth.io releases"  at "http://repo.mth.io/releases"
    , "snapshots" at "http://oss.sonatype.org/content/repositories/snapshots"
    , "releases"  at "http://oss.sonatype.org/content/repositories/releases"
    ))

Then add argonaut as a dependency:

"com.ephox" %% "argonaut" % "4.0" withSources

Future Improvements

Copyright 2012 Ephox Pty Ltd