Comments (4)
Working on the fix_15 branch.
from gojsondiff.
Thanks for the report.
I'll take a look into the issue.
from gojsondiff.
It looks like it's because the Compare()
function assumes that the outer layer of the JSON is an object, not an array. The function.
As an easy workaround for now, you can always wrap the actual object in another object.
Example: {"_": expectedData }
vs {"_": actualData }
.
from gojsondiff.
it cannot properly unmarshall this too: {["this is valid json"]}
from gojsondiff.
Related Issues (20)
- Missing dependencies in vendor/ HOT 1
- New Release: gojsondiff v2.0 HOT 1
- formatter.v1 imports gojsondiff from master HOT 5
- newline delimited json
- Delta colors/diff not shown HOT 2
- Confusing Array Diff Output HOT 1
- how to deal with diffs of JSON where order of array elements isn't important HOT 2
- badcase report
- Incorrect diff when first item of array changed
- Text diff is incorrectly deserialized
- jd format changes integer to scientific notation
- Switch back to k0kubun/pp
- When swapping the value โโof textLeft and textRight, I get different results
- Dependency issue HOT 1
- confused Similarity func when compare two array
- Identical JSON samples with nested arrays are sometimes identified as different
- Doesn't install
- Possibly unecessary dependency from yudai/pp on unmarshaler_test.go HOT 2
- vulnerability : CVE-2022-29526 present in 1.0.0 release
- Two non-identical int64 numbers with 17 digits were compared, and the result obtained was 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 gojsondiff.