[{"data":1,"prerenderedAt":25},["ShallowReactive",2],{"content-json-diff-en":3},{"about":4,"steps":7,"faq":12},[5,6],"Two API responses, config files or data exports look the same at first glance but differ in one nested value. A plain text diff does not help much here, because a different key order or indentation already shows up as a change.","JSON Compare parses both documents and compares their structure: it lists every added, removed and changed value with its path as a JSON Pointer. Key order and formatting do not matter, and arrays can be compared regardless of order. The tool also generates an RFC 6902 JSON Patch. Everything runs in your browser.",[8,9,10,11],"Paste the original JSON on the left and the changed one on the right.","Enable “Ignore array order” if, for example, lists of tags or IDs come in any order.","Under “Changes” you see every difference with its path, the old and the new value.","Under “JSON Patch” you can copy the operations that turn the first document into the second.",[13,16,19,22],{"q":14,"a":15},"What is a JSON Pointer?","A path to a value in the document according to RFC 6901, e.g. \u002Fowner\u002Fmail or \u002Ftags\u002F2 for the third element of an array. “\u002F” in keys is written as ~1, “~” as ~0.",{"q":17,"a":18},"How are arrays compared?","By default element by element, by position. If an array got shorter, the missing elements show up as removed. With “Ignore array order”, equal elements are matched wherever they are; a modified element then appears as removed and added.",{"q":20,"a":21},"What do I need the JSON Patch for?","JSON Patch (RFC 6902) describes changes as a list of operations such as add, remove and replace. Many APIs accept it for HTTP PATCH requests, and libraries in almost every language can apply it.",{"q":23,"a":24},"Does formatting matter?","No. Whitespace, line breaks and the order of keys in objects are ignored. 1 and 1.0 count as equal, \"1\" and 1 do not. To format and validate a single document, use the [[json-formatter]]; for plain text, use [[text-diff]].",1793707145053]