lightblue-platform / lightblue-applications

GNU General Public License v3.0
5 stars 8 forks source link

Better results comparison view #120

Open alechenninger opened 8 years ago

alechenninger commented 8 years ago

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