Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/howardjohn/scanamo-json
Scanamo DynamoFormat for popular Scala Json libraries
https://github.com/howardjohn/scanamo-json
circe dynamodb json scala scanamo
Last synced: 2 months ago
JSON representation
Scanamo DynamoFormat for popular Scala Json libraries
- Host: GitHub
- URL: https://github.com/howardjohn/scanamo-json
- Owner: howardjohn
- License: mit
- Created: 2018-05-14T05:25:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-13T19:05:18.000Z (almost 5 years ago)
- Last Synced: 2024-10-13T18:50:48.813Z (4 months ago)
- Topics: circe, dynamodb, json, scala, scanamo
- Language: Scala
- Size: 15.6 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Scanamo Json
Scanamo Json provides `DynamoFormat`s for popular Scala Json libraries. The format will serialize directly to DynamoDB `AttributeValue`s, allowing full use of DynamoDB while allowing arbitrary Json objects to be stored or reusing existing formats.# Getting started
### Circe
First, add the dependency:
```scala
libraryDependencies += "io.github.howardjohn" %% "scanamo-circe" % "0.2.1"
```Finally, the format can be imported with:
```scala
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:
```scala
libraryDependencies += "io.github.howardjohn" %% "scanamo-play-json" % "0.2.1"
```Finally, the format can be imported with:
```scala
import io.github.howardjohn.scanamo.PlayJsonDynamoFormat._
```This provides a `DynamoFormat[T]` for all `T` with a (play-json) `Format`.