Skip to content

json parsing of string to decimal doesn't handle the decimal separators correctly #798

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

Open
wstaelens opened this issue Mar 11, 2025 · 3 comments

Comments

@wstaelens
Copy link

wstaelens commented Mar 11, 2025

we use woocommerce.net to download orders from a woocommerce store.

The order and the email shows a price of e.g. € 128,00 the order gives us a string "128.00" but for an unknown reason to us the parsing of the json to decimals goes wrong and gives us "12800" after woocommerce.net deserialized the json.

Is this a known bug in woocommerce.net? Any thing we forgot to configure in woocommerce.net ?

(The WooCommerce > Settings > General > separators are set correctly.)

When we pull orders from the user interface thread as a test (blazor server) it is ok. but not from a background thread (which is needed...)

@wstaelens
Copy link
Author

@XiaoFaye is this related to this? #731

@XiaoFaye
Copy link
Owner

Yes

@wstaelens
Copy link
Author

what is the reason json.net should be used in this case? what does it do differently?

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

2 participants