Comments (6)
If there is indeed variant to convert to/from long
, supporting @JsonFormat(shape=Shape.NUMBER)
would make sense I think? Support should also require deserializer handling.
from jackson-modules-java8.
Yep, both serialization and deserialization should be supported, and using shape=Shape.Number
too.
I've forked the repo to try to work on this myself but the build fails with missing poms, is there a specific layout that's needed for building?
from jackson-modules-java8.
@kewne in my experience, clone the jackson-bom repo, run mvn clean install
and then go back to this repo, run whatever you want.
from jackson-modules-java8.
@kevinjom Got it working, thanks!
@cowtowncoder I'm looking through the code but I'm having difficulty understanding the rationale behind some of the formatting: some zeroes are added to the fractional part of the result "to avoid interpretation as integral number".
I've also found FasterXML/jackson-datatype-jsr310#67 which references something similar, what's the desired format?
from jackson-modules-java8.
@kewne excellent! I did not write this module originally, so some of the logic predates my changes. I don't recall part about additional zeroes, which should not be necessary to just differentiate between JSON integers vs floating-point numbers.
from jackson-modules-java8.
As per notes on PR, will merge as soon as we get CLA; will make it in 2.9(.0.pr3)
from jackson-modules-java8.
Related Issues (20)
- OffsetDateTime deserializaion fails when using date-time pattern HOT 1
- Xml cannot read in Optional.empty HOT 6
- Add `JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID` to allow disabling ZoneId normalization on deserialization HOT 5
- Jacskon canβt serialize Duration with Long.MIN_VALUE HOT 2
- Milliseconds timestamps not parsing correctly for `LocalDate` even with `READ_DATE_TIMESTAMPS_AS_NANOSECONDS` as FALSE HOT 8
- Breaking change in `InstantDeserializer API between 2.15 and 2.16 HOT 1
- `LocalDateTime` serialization issue with custom-configured `LocalDateTimeSerializer` HOT 12
- InstantDeserializer fails to parse negative numeric timestamp strings for pre-1970 values. HOT 2
- Custom java time module ignored after upgrade to 2.16 HOT 3
- `Optional` deserialization, serialization ignore `contentConverter` HOT 1
- NPE when serializing a `LocalDate` or `LocalDateTime` using `AsDeductionTypeSerializer` HOT 9
- OffsetTimeSerializer not writing seconds for time object like 15:30:00Z (where seconds is 00) HOT 2
- Implicit name provided by `ParameterNamesModule` overridden by "incomplete" `@JsonProperty` HOT 1
- I don't deserialize java 8 date/time type `java.time.Instant` HOT 2
- ZonedDateTime not serialised as UTC by default HOT 1
- Instants get not deserialized as expected sometimes HOT 2
- Only `DateTimeFormatter.ISO_OFFSET_DATE_TIME` accepted by `ZonedDateTimeKeyDeserializer` HOT 1
- Can't deserialize OffsetDateTime.MIN: Invalid value for EpochDay
- Date and time serialization are very inconsistent HOT 3
- Absent nested optional shennanigans HOT 1
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-modules-java8.