简体   繁体   中英

JSON deserialization

In JSON, when the client sends a numeric data type(with decimlas), what deserialization class should I use on server side. Double?

Edit: SS side is java

What server-side language are you using? Java? If so, what's being stored in the field? Money? If you need to store precise values, I wouldn't use Double... instead look at BigDecimal .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM