r/java • • Jul 23 '26

JEP 540: Simple JSON API (Incubator)

https://openjdk.org/jeps/540
80 Upvotes

81 comments sorted by

View all comments

Show parent comment

6

u/lurker_in_spirit Jul 24 '26

We considered direct conversion methods to BigInteger and BigDecimal, but these types are probably used much less frequently than the primitives.

My personal experience writing line-of-business applications for 20 years is that BigDecimal is surprisingly common. I've never seen BigInteger used, though.