Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (33 sloc) 1.44 kb
<html>
<head>
<title>JSON Diff</title>
<meta charset=utf8>
<link rel="stylesheet" href="css/json-diff.css" type="text/css" media="screen" title="no title" charset="utf-8">
</head>
<body>
<h1>json-diff</h1>
<div class="contentbox" id="instructions">
<ul>
<li>Paste some JSON in each of the text fields. Click "Compare" to see the diff.</li>
<li>Changed portions are displayed in <span class="changed">yellow</span>. Additions are displayed in <span class="added">green</span>. Deletions are displayed in <span class="removed">red</span>.</li>
<li>It also works as a JSON viewer. Click the disclosure triangles to display/hide portions of the JSON.</li>
<li>Invalid JSON is indicated by the text fields turning red.</li>
<li>Swap the contents of the text areas by clicking "Swap". Clear them by clicking "Clear".</li>
</ul>
</div>
<div class="contentbox" id="inputs">
<textarea id="jsonA">
</textarea>
<textarea id="jsonB">
</textarea>
<input type="button" value="Compare" id="compare" />
<input type="button" value="Swap" id="swap" />
<input type="button" value="Clear" id="clear" />
</div>
<p align=center id=first style=display:none><a href=#change-0>first change</a></p>
<div class="contentbox" id="results">
</div>
<script src="js/lib/jsond.js?v=1" type="text/javascript" charset="utf-8"></script>
<script src="js/app.js?v=1" type="text/javascript" charset="utf-8"></script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.