Giter Club home page Giter Club logo

Comments (6)

liufengyun avatar liufengyun commented on August 21, 2024

requisition_header.requisition_lines[0] is very different in JSON_1 and JSON_2, so it reports - and +.

from hashdiff.

kotubhaskar avatar kotubhaskar commented on August 21, 2024

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.

liufengyun avatar liufengyun commented on August 21, 2024

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.

kotubhaskar avatar kotubhaskar commented on August 21, 2024
  • 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.

kotubhaskar avatar kotubhaskar commented on August 21, 2024

@liufengyun Can you share your skype id?

from hashdiff.

liufengyun avatar liufengyun commented on August 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.