-
Notifications
You must be signed in to change notification settings - Fork 112
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
Cannot distinguish between number and string when they are equal in compare mode #270
Comments
Thanks for reporting, that is an interesting case indeed. Right now all text is black (or white) when highlighted as a difference, because with colored text it became a bit of a color-circus with some colors having a bad contrast. Maybe we can come up with an other way to show what the difference is, like showing an icon with explanatory text like "this item is removed in the right panel", and "the value in the left panel is a number, and in the right panel is a string". Showing text quotes is also an idea. Always showing quotes would make the editor look quite crowdy. So indeed maybe only when highlighted as a difference 🤔 . Other ideas? |
I'm trying out JSON Editor with the I'm using the following code sample provided in the documentation:
|
Comparing two JSON documents is not part of this open-source library ( |
Hey @josdejong, thanks for the quick response. |
No there isn't, sorry. I'm trying to make a living out of my open-source projects though, amongst others with this web application. Any support for this library and the web application is welcome. |
Thanks for the clarifications. If we decide to go with this package for our project, I'll be more than happy to support this library :) |
Appreciated! |
In text mode, you can distinguish field types by quotes and colors, but in compare mode, quotes and colors disappear, so when the compared fields are of different types but have the same literal size, the two cannot be distinguished.
hope to provide a configuration to show the text color or quotes to distinguish the type in compare mode as well
The text was updated successfully, but these errors were encountered: