Skip to content
Scanamo DynamoFormat for popular Scala Json libraries
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
project
scanamo-circe/src
scanamo-play-json/src
tests/src/main/scala/io/github/howardjohn/scanamo
.scalafmt.conf
.travis.yml
LICENSE
README.md
build.sbt

README.md

Scanamo Json

Scanamo Json provides DynamoFormats for popular Scala Json libraries. The format will serialize directly to DynamoDB AttributeValues, allowing full use of DynamoDB while allowing arbitrary Json objects to be stored or reusing existing formats.

Getting started

Circe

First, add the dependency:

    libraryDependencies += "io.github.howardjohn" %% "scanamo-circe" % "0.2.1"

Finally, the format can be imported with:

    import io.github.howardjohn.scanamo.CirceDynamoFormat._

This provides a DynamoFormat[T] for all T with both an Encoder and Decoder.

Play Json

First, add the dependency:

    libraryDependencies += "io.github.howardjohn" %% "scanamo-play-json" % "0.2.1"

Finally, the format can be imported with:

    import io.github.howardjohn.scanamo.PlayJsonDynamoFormat._

This provides a DynamoFormat[T] for all T with a (play-json) Format.

You can’t perform that action at this time.