FasterXML / FasterXML/jackson3-dev

Allow combination of `@JsonValue`, `@JsonRawValue` somehow

Open
#29 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
No language data
Stars
6
Forks
0
PR merge metrics
No merged PRs in 30d

Description

(for background see https://github.com/FasterXML/jackson-databind/issues/1938)

Although naming of `@JsonRawValue` might indicate combination of `@JsonValue` and "do not encode", it actually works as refinement for regular properties, that is, combination of `@JsonProperty` and "do not encode".

But in some cases it would be beneficial to allow former interpretation.

One possibility would be to add a new property in `@JsonValue` -- this seem more natural than doing the reverse (adding something in `@JsonRawValue` to indicate "this is the sole output like `@JsonValue`, not property).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.