Skip to content

Conversation

@gustavosantos-kazoo
Copy link
Contributor

Description

Fixes float and double serialization for cultures that use comma as decimal separator. pt-BR for instance uses comma instead of dot as decimal separator.

Also I added a unit test that checks in every available culture if a serialized number is always serialized with dot instead of comma. And its passing on every target platform.

How JSON payload looked like before fix

image
This results in a payload rejection by server, due to malformed JSON.

How JSON payload looks like after fix

image

…ecimal separator

pt-BR for instance uses comma instead of dot as decimal separator
@wenxi-zeng wenxi-zeng merged commit e262c00 into segmentio:main Dec 3, 2025
3 checks passed
@wenxi-zeng
Copy link
Contributor

hi @gustavosantos-kazoo, sorry missed your pr completely. this is great! thanks for contributing

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

Successfully merging this pull request may close these issues.

2 participants