News for hackers. Stuff that matters.
Re:Why Jupyter is data scientists’ computational notebook of... by stephengillie on Tuesday October 30, 2018 @11:19AM (#18337367)
Diffing JSON as text must be painful. Diffing JSON as data should be somewhat simple.
Re:Why Jupyter is data scientists’ computational notebook of... by justin66 on Tuesday October 30, 2018 @12:28PM (#18338387)
Are there any merge tools that offer features for this a lot more sophisticated than basic text comparison?
Re:Why Jupyter is data scientists’ computational notebook of... by avip on Tuesday October 30, 2018 @02:16PM (#18339730)
Not merge, but jq can diff, and it can also do a consistent dump (jq -cS) for you.

Edit: to clarify, jq -S does deep keys sorting.

  $ echo '{"z":{"b": "second", "a": "first"}, "x": 4, "y": 7}' | jq -S
  {
    "x": 4,
    "y": 7,
    "z": {
      "a": "first",
      "b": "second"
    }
  }
Re:Why Jupyter is data scientists’ computational notebook of... by stephengillie on Tuesday October 30, 2018 @12:44PM (#18338595)
Powershell has Compare-Object, which will diff .NET objects. It has the convenient alias "diff". JSON can be converted to .NET objects by ConvertFrom-JSON.

So you can import 2 JSON files and diff them in Powershell.