bizzabo / play-json-extensions

+22 field case class formatter and more for play-json
http://cvogt.org/play-json-extensions/api/
Other
196 stars 44 forks source link

Support for snake_case #74

Closed mtsokol closed 4 years ago

CLAassistant commented 5 years ago

CLA assistant check
All committers have signed the CLA.

jcurr commented 5 years ago

@mtsokol I would like to use your changes, would you be willing to sign the agreement so that the branch can be merged? Thanks

mtsokol commented 5 years ago

@jcurr sure, I've just signed it.

rucas commented 5 years ago

bump. would like to use this feature.

henricook commented 4 years ago

@mtsokol Next time it'd be really useful to update the README - especially for a breaking change like this.

To retain old behaviour should we be using implicit val encoder: NameEncoder = BaseNameEncoder()? Like this:

implicit val format: Format[MyCaseClass] = {
    implicit val encoder: NameEncoder = BaseNameEncoder()
    Jsonx.formatCaseClass[MyCaseClass]
  }