JSON Diff parses both documents into data structures and compares them recursively by object key and array index. It focuses on paths and values rather than indentation, line breaks, or object key order, which makes it more useful than plain text diff for API responses and configuration.
The result separates additions, removals, and changed values while retaining the path of every difference. Reordering object keys is ignored, but arrays are ordered, so moving an array item can appear as changes at several indexes.