google / dart-json_diff Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Now is written:
Map<String,Object> left = '{"a": 2, "b": 3, "c": 5, "d": {"x": 4, "y": 8}}';
Map<String,Object> right = '{"b": 7, "c": 5, "d": {"x": 4, "z": 16}, "e": 11}';
It supposed to be:
String left = '{"a": 2, "b": 3, "c": 5, "d": {"x": 4, "y": 8}}';
String right = '{"b": 7, "c": 5, "d": {"x": 4, "z": 16}, "e": 11}';
With Maps new JsonDiffer(left, right)
throws an error.
If have seen that you updated diff_match_patch to 0.4.1 on master. However this has yet to be released to pub.dev.
Dart version should be bumped to 2.12.0 in order to enable the null safety feature.
I'm pretty sure it isn't implemented as is, how feasible is it to add though? I would hope to see a moved list of some kind, I know order of map keys isn't a requirement of json itself, but dart does use an ordered hashmap for its representation of json so its possible. I'm implementing an undo mechanism using diff and it would be helpful to not have the maps items in a different order on reverting.
{
"a":"value",
"b": "value"
}
{
"b":"value"
"a":"value"
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.