zgrossbart / jdd

A semantic JSON compare tool
http://www.jsondiff.com
Apache License 2.0
1.03k stars 180 forks source link

Issue with certain json data #39

Closed LuisEnMarroquin closed 3 years ago

LuisEnMarroquin commented 3 years ago

Hi there, I think I found an issue, when I compare this 2 JSON I don't get a the differences

Here is the info I enter (the only difference is line 15 ".ssh/": true,)

image

image

Here is the first file

{
  "editor.tabSize": 2,
  "standard.enable": true,
  "standard.autoFixOnSave": true,
  "files.trimFinalNewlines": true,
  "standard.engine": "ts-standard",
  "files.insertFinalNewline": true,
  "editor.detectIndentation": false,
  "javascript.validate.enable": false,
  "files.trimTrailingWhitespace": true,
  "search.exclude": {
    "**/package-lock.json": true
  },
  "files.exclude": {
    ".vscode/": true,
    "**/.DS_Store": true,
    "**/.directory": true,
    "**/desktop.ini": true,
    "**/node_modules/": true
  }
}

Here is the second one

{
  "editor.tabSize": 2,
  "standard.enable": true,
  "standard.autoFixOnSave": true,
  "files.trimFinalNewlines": true,
  "standard.engine": "ts-standard",
  "files.insertFinalNewline": true,
  "editor.detectIndentation": false,
  "javascript.validate.enable": false,
  "files.trimTrailingWhitespace": true,
  "search.exclude": {
    "**/package-lock.json": true
  },
  "files.exclude": {
    ".ssh/": true,
    ".vscode/": true,
    "**/.DS_Store": true,
    "**/.directory": true,
    "**/desktop.ini": true,
    "**/node_modules/": true
  }
}

Here is what is displayed in console

image

zgrossbart commented 3 years ago

You did find a bug. Thank you very much. This should be fixed with the following commit: https://github.com/zgrossbart/jdd/commit/669e3ff7a2d801741af2394c2a0083433c21c74e