Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (33 sloc) 1.41 KB
<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">
<div class="contentbox" id="instructions">
<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>
<div class="contentbox" id="inputs">
<textarea id="jsonA">
<textarea id="jsonB">
<input type="button" value="Compare" id="compare" />
<input type="button" value="Swap" id="swap" />
<input type="button" value="Clear" id="clear" />
<p align=center id=first style=display:none><a href=#change-0>first change</a></p>
<div class="contentbox" id="results">
<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>
Jump to Line
Something went wrong with that request. Please try again.