Comments (3)
One possible way to implement this: add a new property or properties for @JsonFormat
-- seems like it'd be the relevant existing annotation to use.
I think this should also cover the related SerializationFeature.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED
as well.
from jackson-annotations.
Note: will be implemented as somewhat general-purpose facility, extension to @JsonFormat
with new properties with
and without
, and enumeration JsonFormat.Feature
that defines possible features to enable/disable. The reason latter is needed (instead of referring to SerializationFeature
, DeserializationFeature
) is that annotation package does not (and can not) depend on jackson-databind
, so there will be bit of redundancy. On plus side this does allow carefully selecting kinds of features that can and should be supported, as well as possibly adding things for which there is no databind-level feature.
from jackson-annotations.
This was a nice addition. I encountered a possible problem: #67
from jackson-annotations.
Related Issues (20)
- remove (alias) "Json" from annotations HOT 1
- FEATURE : add annotation support to generate dependencies / dependentRequired into a schema file HOT 1
- Document that @JsonAlias can be used on enum values HOT 3
- enable @jsonignores ignore property of property of and more... HOT 1
- @JsonIgnore usage instead of @JsonManagedReference and @JsonBackReference HOT 1
- Add @Inherited annotation to all Jackson annotations HOT 2
- `@JsonIgnore` on `public boolean isSomething()` methods: Bug or feature ? HOT 4
- Add support for prefix and suffix on @JsonAnySetter annotation HOT 3
- Allow explicit `JsonSubTypes` repeated names check HOT 1
- A interface has annodationed (@JsonTypeInfo/@JsonSubTypes) , but got a Exception HOT 1
- Multiple Variable Declarations (Single Line) HOT 11
- Add NOTICE file with copyright information HOT 20
- @JsonProperty on a boolean field results into two fields in the final JSON HOT 2
- Add `JsonFormat.Feature.READ_DATE_TIMESTAMPS_AS_NANOSECONDS`
- Add "require type id for subtypes" property for `JsonTypeInfo.Value` in 3.0 HOT 8
- @JsonCreator with constuctor, whitch parameters annotated with @JsonProperty
- Rename ambiguous `JsonProperty.Access.*` constants HOT 1
- Allow `@JsonAnySetter` on `ElementType.PARAMETER` (for use on constructor parameters)
- Convert unit tests to JUnit5 (from JUnit4) HOT 1
- Add `ElementType.PARAMETER` to `@JsonIgnore` to allow use for Constructor parameters HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jackson-annotations.