genericExtras


License

License

GroupId

GroupId

io.circe
ArtifactId

ArtifactId

circe-generic-extras_sjs0.6_2.13
Last Version

Last Version

0.13.0
Release Date

Release Date

Type

Type

jar
Description

Description

genericExtras
genericExtras
Project URL

Project URL

https://github.com/circe/circe-generic-extras
Project Organization

Project Organization

io.circe
Source Code Management

Source Code Management

https://github.com/circe/circe-generic-extras

Download circe-generic-extras_sjs0.6_2.13

How to add to project

<!-- https://jarcasting.com/artifacts/io.circe/circe-generic-extras_sjs0.6_2.13/ -->
<dependency>
    <groupId>io.circe</groupId>
    <artifactId>circe-generic-extras_sjs0.6_2.13</artifactId>
    <version>0.13.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.circe/circe-generic-extras_sjs0.6_2.13/
implementation 'io.circe:circe-generic-extras_sjs0.6_2.13:0.13.0'
// https://jarcasting.com/artifacts/io.circe/circe-generic-extras_sjs0.6_2.13/
implementation ("io.circe:circe-generic-extras_sjs0.6_2.13:0.13.0")
'io.circe:circe-generic-extras_sjs0.6_2.13:jar:0.13.0'
<dependency org="io.circe" name="circe-generic-extras_sjs0.6_2.13" rev="0.13.0">
  <artifact name="circe-generic-extras_sjs0.6_2.13" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.circe', module='circe-generic-extras_sjs0.6_2.13', version='0.13.0')
)
libraryDependencies += "io.circe" % "circe-generic-extras_sjs0.6_2.13" % "0.13.0"
[io.circe/circe-generic-extras_sjs0.6_2.13 "0.13.0"]

Dependencies

compile (3)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.13.1
org.scala-js : scalajs-library_2.13 jar 0.6.32
io.circe : circe-generic_sjs0.6_2.13 jar 0.13.0

provided (2)

Group / Artifact Type Version
org.scala-lang : scala-compiler jar 2.13.1
org.scala-lang : scala-reflect jar 2.13.1

test (6)

Group / Artifact Type Version
org.scala-js : scalajs-test-bridge_2.13 jar 0.6.32
io.circe : circe-literal_sjs0.6_2.13 jar 0.13.0
io.circe : circe-testing_sjs0.6_2.13 jar 0.13.0
org.scalatest : scalatest_sjs0.6_2.13 jar 3.1.0
org.scalatestplus : scalacheck-1-14_sjs0.6_2.13 jar 3.1.0.1
org.typelevel : jawn-parser_2.13 jar 1.0.0

Project Modules

There are no modules declared in this project.

circe-generic-extras

Build status Coverage status Gitter Maven Central

This library provides configurable generic derivation and other functionality extending the generic derivation mechanisms provided in Circe's circe-generic module. The circe-generic-extras module used to be included in the core Circe repository, but it was moved to this separate repository after 0.12.1, in preparation for Circe's 1.0.0 release.

This library is experimental and its development is primarily community-supported.

Usage

This library as functionality to parse JSON in different cased formats such as snake_case, kebab-case, PascalCase or SCREAMING_SNAKE_CASE.

You can enable different case modes by making a custom configuration.

{
  "foo-bar": "foobar"
}
import io.circe.generic.extras.semiauto._
import io.circe.generic.extras.Configuration

case class Foo(fooBar: String)

implicit val customConfig: Configuration = Configuration.default.withKebabCaseMemberNames

implicit val fooEncoder: Encoder[Foo] = deriveConfiguredEncoder
implicit val fooDecoder: Decoder[Foo] = deriveConfiguredDecoder

Contributors and participation

All Circe projects support the Scala code of conduct and we want all of their channels (Gitter, GitHub, etc.) to be welcoming environments for everyone.

Please see the Circe contributors' guide for details on how to submit a pull request.

License

circe-generic-extras is licensed under the Apache License, Version 2.0 (the "License"); you may not use this software except in compliance with the License.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

io.circe

circe

Versions

Version
0.13.0
0.12.2
0.12.1
0.12.0
0.12.0-RC4
0.12.0-RC3
0.12.0-RC2
0.12.0-RC1
0.12.0-M4
0.12.0-M3