Comments (6)
requisition_header.requisition_lines[0]
is very different in JSON_1 and JSON_2, so it reports -
and +
.
from hashdiff.
From the result you can see requisition_header.requisition_lines[0] is there both in JSON_1 and JSON_2
but as per the out put i.e after diff it is mentioned that requisition_header.requisition_lines[0] does not exist in JSON_2 instead comparing its content inside it.
Please use your hashdiff app that you hosted on heroku.
from hashdiff.
I see requisition_header.requisition_lines[0] is there both in JSON_1 and JSON_2, but they are very different, so the algorithm treats them as two different object, thus not compare them recursively.
from hashdiff.
- requisition_header.requisition_lines[0]{"item"=>{"name"=>"RISC Server with 4 CPU and 16Gb RAM"}, "line_num"=>1, "need_by_date"=>"2010-09-23T07:00:00.000Z", "account"=>{"code"=>"SF-Marketing-Indirect", "account_type"=>{"name"=>"Ace Corporate"}}}
The '-' means the element or key does not exist in json_2. but it is there. What I mean is the key itself is not found then how it can compare the data of key can be compared?
from hashdiff.
@liufengyun Can you share your skype id?
from hashdiff.
The '-' means the element or key does not exist in json_2
@kotubhaskar that's a misunderstanding. For arrays, -
means the element is completely changed.
Sorry that I'm not on Skype most of the time. I'd like to keep the discussion here, so that it might be helpful to others as well.
from hashdiff.
Related Issues (20)
- Ruby 1.8.7 compatibility HOT 2
- make use_lcs: false the default HOT 2
- RexEx in compares?
- Unexpected difference between diffs of hashes vs. arrays HOT 5
- Conflicts with `hash_diff` HOT 50
- HashDiff never finishes when comparing two arrays HOT 3
- "use_lcs: false" does not work as expected as per documentation HOT 1
- Compare objects inheriting from the same class HOT 1
- version tags would be helpful to see diffs HOT 2
- Unexpected results HOT 1
- Please stop the `warn` spam HOT 6
- Canβt silence HashDiff constant warning HOT 6
- Issues with diff
- default similarity should be 1
- Getting (+-) instead of diff (tilde) when comparing arrays HOT 5
- Please document the determinism of HashDiff.diff and friends HOT 1
- ==/equal? overrides not used when checking keys
- [Feature request] :ignore_keys option HOT 3
- ignore_keys ignores only common keys HOT 5
- ignore_keys doesn't seem to work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hashdiff.