|
4 | 4 | <title>JsonDiffPatch</title>
|
5 | 5 | <meta
|
6 | 6 | name="description"
|
7 |
| - content="JsonDiffPatch is javascript/typescript library to deep diff json or text" |
| 7 | + content="JsonDiffPatch is a free online json diff tool and npm library to compare json and get a json diff" |
8 | 8 | />
|
9 |
| - <meta content="width=device-width, initial-scale=1" name="viewport" /> |
| 9 | + <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 10 | + <link rel="canonical" href="https://jsondiffpatch.com/" /> |
| 11 | + <link rel="icon" href="logo.svg" type="image/svg+xml" /> |
| 12 | + |
| 13 | + <meta name="twitter:card" content="summary_large_image" /> |
| 14 | + <meta name="twitter:creator" content="@beneidel" /> |
| 15 | + <meta name="twitter:title" content="JsonDiffPatch" /> |
| 16 | + <meta |
| 17 | + name="twitter:description" |
| 18 | + content="JsonDiffPatch is a free online json diff tool and npm library to compare json and get a json diff." |
| 19 | + /> |
| 20 | + <meta |
| 21 | + name="twitter:image" |
| 22 | + content="https://jsondiffpatch.com/jsondiffpatch-visual-diff.png" |
| 23 | + /> |
| 24 | + <meta property="og:type" content="website" /> |
| 25 | + <meta property="og:title" content="JsonDiffPatch" /> |
| 26 | + <meta |
| 27 | + property="og:description" |
| 28 | + content="JsonDiffPatch is a free online json diff tool and npm library to compare json and get a json diff." |
| 29 | + /> |
| 30 | + <meta property="og:locale" content="en_US" /> |
| 31 | + <meta property="og:url" content="http://jsondiffpatch/" /> |
| 32 | + <meta |
| 33 | + property="og:image" |
| 34 | + content="https://jsondiffpatch.com/jsondiffpatch-visual-diff.png" |
| 35 | + /> |
| 36 | + <meta property="og:image:type" content="image/png" /> |
| 37 | + <meta property="og:image:width" content="774" /> |
| 38 | + <meta property="og:image:height" content="774" /> |
| 39 | + |
10 | 40 | <meta name="color-scheme" content="dark light" />
|
11 |
| - <meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> |
12 |
| - <meta content="utf-8" http-equiv="encoding" /> |
13 | 41 | <meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
14 |
| - <link rel="canonical" href="https://jsondiffpatch.com/" /> |
| 42 | + <meta content="utf-8" http-equiv="encoding" /> |
| 43 | + <meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> |
15 | 44 | <link rel="stylesheet" href="style.css" type="text/css" media="screen" />
|
16 | 45 | <link
|
17 | 46 | rel="stylesheet"
|
|
130 | 159 | </style>
|
131 | 160 | <header>
|
132 | 161 | <div>
|
133 |
| - <h1> |
| 162 | + <h1>JsonDiffPatch</h1> |
| 163 | + <div aria-hidden="true" id="diffed-h1"> |
134 | 164 | Js<span class="jsondiffpatch-textdiff-deleted"><span>on</span></span
|
135 | 165 | ><span class="jsondiffpatch-textdiff-added"><span>Diff</span></span
|
136 | 166 | >Patch
|
137 |
| - </h1> |
| 167 | + </div> |
138 | 168 | <span id="description"></span>
|
139 |
| - <a id="external-link" style="display: none">source</a> |
| 169 | + <a id="external-link" style="display: none" target="_blank">source</a> |
140 | 170 | </div>
|
141 | 171 | <nav>
|
142 | 172 | <button id="color-scheme-toggle" title="Toggle theme">
|
@@ -243,7 +273,7 @@ <h2>JSON Right</h2>
|
243 | 273 | <span class="error-message"></span>
|
244 | 274 | </div>
|
245 | 275 | </div>
|
246 |
| - <div id="results"> |
| 276 | + <section id="results"> |
247 | 277 | <h2>Delta</h2>
|
248 | 278 | <label>
|
249 | 279 | <input
|
@@ -281,13 +311,79 @@ <h2>Delta</h2>
|
281 | 311 | <textarea id="json-delta" readonly> </textarea>
|
282 | 312 | <span class="error-message"></span>
|
283 | 313 | </div>
|
284 |
| - </div> |
| 314 | + </section> |
| 315 | + <section id="features"> |
| 316 | + <h2>Features</h2> |
| 317 | + <ul> |
| 318 | + <li> |
| 319 | + compare 2 json. also supports json5, json with comments, or plain text |
| 320 | + </li> |
| 321 | + <li> |
| 322 | + json diff as visual diff or json (see |
| 323 | + <a |
| 324 | + href="https://github.com/benjamine/jsondiffpatch/blob/master/docs/deltas.md" |
| 325 | + rel="nofollow" |
| 326 | + target="_blank" |
| 327 | + >delta format</a |
| 328 | + >) |
| 329 | + </li> |
| 330 | + <li> |
| 331 | + compare json from a gist (<a href="/?benjamine/9188826">example</a |
| 332 | + >)<br /> |
| 333 | + <ol> |
| 334 | + <li> |
| 335 | + <a href="https://gist.github.com/" rel="nofollow" |
| 336 | + >create a gist</a |
| 337 | + > |
| 338 | + </li> |
| 339 | + <li>add 2 json files on the gist</li> |
| 340 | + <li> |
| 341 | + paste the gist url here: <input id="gist-link" type="text" /> |
| 342 | + </li> |
| 343 | + </ol> |
| 344 | + </li> |
| 345 | + <li> |
| 346 | + smart diff arrays/lists. if items are objects a "key", "id", or "name" |
| 347 | + is automatically used to match |
| 348 | + </li> |
| 349 | + <li> |
| 350 | + text diff. for long string or text, a text diff is done at characther |
| 351 | + level (using |
| 352 | + <a href="https://github.com/google/diff-match-patch" target="_blank" |
| 353 | + >google/diff-match-patch</a |
| 354 | + >) |
| 355 | + </li> |
| 356 | + </ul> |
| 357 | + </section> |
285 | 358 | <footer>
|
286 |
| - <a href="https://github.com/benjamine/jsondiffpatch">Get JsonDiffPatch</a> |
287 |
| - <br /> |
288 |
| - <p class="credits"> |
289 |
| - JsonDiffPatch was developed by |
290 |
| - <a href="https://twitter.com/beneidel">Benjamin Eidelman</a> |
| 359 | + <p> |
| 360 | + powered by the |
| 361 | + <a |
| 362 | + class="library-link" |
| 363 | + href="https://github.com/benjamine/jsondiffpatch" |
| 364 | + >jsondiffpatch</a |
| 365 | + > |
| 366 | + library |
| 367 | + </p> |
| 368 | + <p align="center"> |
| 369 | + <a href="https://twitter.com/beneidel" rel="nofollow" |
| 370 | + ><img |
| 371 | + src=" https://img.shields.io/badge/created%[email protected]" |
| 372 | + alt="Created by Benjamin Eidelman" |
| 373 | + /></a> |
| 374 | + <a href="https://opensource.org/licenses/MIT" rel="nofollow" |
| 375 | + ><img |
| 376 | + src="https://img.shields.io/github/license/benjamine/jsondiffpatch" |
| 377 | + alt="License" |
| 378 | + /></a> |
| 379 | + <a href="https://www.npmjs.com/package/jsondiffpatch" rel="nofollow" |
| 380 | + ><img src="https://img.shields.io/npm/dw/jsondiffpatch.svg" alt="npm" |
| 381 | + /></a> |
| 382 | + <a href="https://github.com/benjamine/jsondiffpatch" rel="nofollow" |
| 383 | + ><img |
| 384 | + src="https://img.shields.io/github/stars/benjamine/jsondiffpatch" |
| 385 | + alt="stars" |
| 386 | + /></a> |
291 | 387 | </p>
|
292 | 388 | </footer>
|
293 | 389 | <script src="build/demo.js" type="module"></script>
|
|
0 commit comments