Victor
Victor

Reputation: 17097

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

Upvotes: 0

Views: 366

Answers (1)

Michael Fredrickson
Michael Fredrickson

Reputation: 37388

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.

Upvotes: 1

Related Questions