https://github.com/pureharm/pureharm-json-circe
opiniated way of handling circe json
https://github.com/pureharm/pureharm-json-circe
circe pureharm scala
Last synced: 3 months ago
JSON representation
opiniated way of handling circe json
- Host: GitHub
- URL: https://github.com/pureharm/pureharm-json-circe
- Owner: pureharm
- License: apache-2.0
- Created: 2021-03-17T12:27:07.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-04T08:12:05.000Z (almost 4 years ago)
- Last Synced: 2025-01-19T14:17:20.597Z (5 months ago)
- Topics: circe, pureharm, scala
- Language: Scala
- Homepage:
- Size: 150 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# pureharm-json-circe
See [changelog](./CHANGELOG.md).
## modules
- `"com.busymachines" %% s"json-circe" % "0.3.0-M1"`. Which in turn depends on:
- [circe](https://github.com/circe/circe) `0.14.1`
- [pureharm-core-anomaly](https://github.com/pureharm-core/releases) `0.3.0`
- [pureharm-core-sprout](https://github.com/busymachines/pureharm-core/releases) `0.3.0`### Scala versions
- Scala 2.13: for JVM and JS
- Scala 3: for JVM and JS## usage
Under construction. See [release notes](https://github.com/busymachines/pureharm-core/releases) and tests for examples.### :warning: if you are upgrading from versions 0.2.0 or before
With circe `0.14.1` the method of deriving _sealed traits_ using the `_type` discriminator no longer exists _for Scala 3_. So in an effort to support Scala 3 this behavior is deprecated in Scala 2, and in Scala 3 it is stubbed out. Please make efforts in migrating to the usage of `busymachines.pureharm.json.GenericSemiAutoDerivation` xor its counterpart `busymachines.pureharm.json.derived`. The deprecation warnings will guide you. Note that this is non-trivial in case you were using the old method to derive _sealed trait_ hierarchies, otherwise the transition does not break anything.
## Copyright and License
All code is available to you under the Apache 2.0 license, available
at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) and also in
the [LICENSE](./LICENSE) file.