Comments (1)
@reharik -- As designed, this returns an empty result when there is no difference. Can you provide the simplest example of the two objects you are diffing that show output when identical?
example:
$ ./bin/json-diff.js --raw-json <(echo '{"a":4, "b":6}') <(echo '{"a":5,"b":6}')
{
"a": {
"__old": 4,
"__new": 5
}
}
$ ./bin/json-diff.js --raw-json <(echo '{"a":4, "b":6}') <(echo '{"a":4,"b":6}')
$
from json-diff.
Related Issues (20)
- BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default HOT 4
- The -x option doesn't seem to be working? HOT 3
- The returned result is not as expected HOT 2
- Need lib/colorize method to convert diffData to diffString HOT 1
- How to use the exclude option in ES5 or ES6 HOT 2
- Elisions: Add for objects and custom localization
- outputNewOnly = true loose colours and previous value
- Can't resolve 'os' in '/node_modules/colors/lib/system' HOT 4
- Add typescript types
- Floats with zeros after decimal point and integers are treated as identical HOT 2
- The --output-keys option not working? HOT 2
- 1.0.4 version makes the terminal so messy HOT 1
- Propose new features: combine diffs and restore them HOT 2
- disable console logging HOT 3
- Browser exception when deployed under Nuxt 3 HOT 7
- Browser issue when using vite HOT 3
- Do I need to install coffee separately? HOT 1
- Ability to separate JSON returned by 'diff'
- Ability to treat undefined and non existing the same
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 json-diff.