-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
JSONObject#similar() fails to consider similar a number with/without trailing zero #589
Comments
@cdanger Thanks for bringing up this issue. Changing existing behavior is generally not encouraged in this project, but let's see if others have an opinion. |
@cdanger can you run against the latest |
See #575 |
Indeed, I had tried with the last release 20201115. And now with the latest master, I confirm it is fixed 👍 . |
A release will be scheduled before the end of this week. |
…e's Request AttributeValues - Moved XACML/JSON profile tests (conformance, etc.) to module pdp-testutils - Fixed XacmlJsonUtils.canonicalizeResponse() to work around this issue when comparing JSONObjects: stleary/JSON-java#589 - Changed visibility of default XACML/XML Request preprocessor to public
Closed due to issue resolved in release 20210307 |
- Removed workaround for stleary/JSON-java#589 after upgrade of org.everity.json.schema dependency
Hello,
as confirmed by #134 , numbers 1 and 1.0 should be considered the same in JSON. However, the method
JSONObject#similar(Object)
does not. Here is a simple test:The text was updated successfully, but these errors were encountered: