Skip to content

Scanamo DynamoFormat for popular Scala Json libraries

License

Notifications You must be signed in to change notification settings

howardjohn/scanamo-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

48addee · Jan 15, 2020

History

13 Commits
Nov 8, 2019
Jan 15, 2020
Jan 15, 2020
Nov 8, 2019
Nov 8, 2019
May 14, 2018
Nov 15, 2019
May 14, 2018
May 20, 2018
Jan 15, 2020

Repository files navigation

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.