Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSONWire to parse doubles/ints surrounded by quotes #886

Closed
JerryShea opened this issue Apr 26, 2024 · 2 comments
Closed

JSONWire to parse doubles/ints surrounded by quotes #886

JerryShea opened this issue Apr 26, 2024 · 2 comments
Assignees

Comments

@JerryShea
Copy link
Contributor

if a DTO has a double field "price" then parsing in this JSON results in price's value == -0.0

"price": "1.234"

If you take away the quotes it is parsed correctly as 1.234 e.g

"price": 1.234
@peter-lawrey peter-lawrey self-assigned this Apr 26, 2024
@peter-lawrey peter-lawrey changed the title JSONWire to parse doubles surrounded by double quotes JSONWire to parse doubles/ints surrounded by quotes Apr 26, 2024
@peter-lawrey
Copy link
Member

Added double/float/long/int with single and double quote.

@hft-team-city
Copy link
Collaborator

Released in Chronicle-Wire-2.25ea14, BOM-2.25ea52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants