diff --git a/json-diff/closed.png b/json-diff/closed.png new file mode 100644 index 0000000..147c717 Binary files /dev/null and b/json-diff/closed.png differ diff --git a/json-diff/index.html b/json-diff/index.html new file mode 100644 index 0000000..73ec5e1 --- /dev/null +++ b/json-diff/index.html @@ -0,0 +1,245 @@ + +
+Courtesy of tlrobinson.
+
+ This version differs in that it supports null values,
+ downplays the significance of changed properties with the key key,
+ and provides links to jump from one change to the next.
JSON Diff is a simple way to visualize and compare JSON.
++ © 2006-2010 Thomas Robinson. Some rights reserved.
+ + + diff --git a/json-diff/json-diff.css b/json-diff/json-diff.css new file mode 100644 index 0000000..04dc054 --- /dev/null +++ b/json-diff/json-diff.css @@ -0,0 +1,73 @@ +body { + background-color: lightblue; +} + +#results li > span, #results ul > span { + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + padding-right: 5px; + padding-left: 5px; +} + +#results li { + margin-top: 1px; + padding-left: 15px; +} +#results ul { + padding-left: 15px; + margin-left: -15px; + padding-top: 0px; + margin-top: 0px; + background: url(open.png) no-repeat 2px 5px; + list-style-type: none; +} +#results ul[closed="yes"] { + background: url(closed.png) no-repeat 2px 5px; +} +#results ul[closed="yes"] > * { + display: none; +} +#results ul[closed="yes"] > *:first-child { + display: block; +} +.typeName { + color: gray; +} +.changed { + background-color: #fcff7f; +} +.changed.key { + background-color: #eee; +} + +.added { + background-color: #8bff7f; +} +.removed { + background-color: #fd7f7f; +} + +textarea { + width: 49%; + height: 200px; +} + +.contentbox { + border: 1px dashed black; + background-color: white; + padding: 15px; + margin: 10px; +} + +h2 { + text-align: center; + margin: 0px;; +} + +#results { + padding-left: 40px; +} + +#inputs { + text-align: center; +} \ No newline at end of file diff --git a/json-diff/open.png b/json-diff/open.png new file mode 100644 index 0000000..1d48c6a Binary files /dev/null and b/json-diff/open.png differ