-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Description
It's hard to compare json because it is not tabular data.
We could format it to tabular data by transformation each element to a path and a value. Each row is a doc, each cell is a value, each column is a path:
given 2 docs:
{
"foo": ["1", "2"],
"bar": {
"baz": 1234
},
"thing": false,
}
{
"foo": ["1"],
"bar": {
"baz": 456
},
"thing": true,
}
table is:
foo[0] | foo[1] | bar.baz | thing | |
---|---|---|---|---|
1 | "1" | "2" | 1234 | false |
2 | "1" | 456 | true |