Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default encoder now excludes Option.None instead of "key":null #8

Merged
merged 1 commit into from
Mar 10, 2016

Conversation

bhudgeons
Copy link

By default, when JSON-encoding case classes, circe encodes Options like case class MyClass(one:String, two:Option[String]); MyClass("myval", None) as { "one":"myval", "two":null }

Now, by default featherbed will encode it as { "one":"myval" } and exclude the None. This makes more sense for a JSON API client, where Option case class values probably represent optional API keys.

@jeremyrsmith
Copy link
Collaborator

Looks good to me

jeremyrsmith added a commit that referenced this pull request Mar 10, 2016
Default encoder now excludes Option.None instead of "key":null
@jeremyrsmith jeremyrsmith merged commit feb302e into finagle:master Mar 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants