JSON Structure Diff

JSON Structure Diff

Compare two JSON documents semantically. Ignore object key order, compare arrays by index, and list added, removed, and changed paths.

Input and results are processed in browser memory. This tool does not upload or save them; resetting or leaving the page clears them. Shared advertising and visitor analytics may operate separately, but individual input contents are not included in tool-use events.

Comments & questions

JSON Structure Diff

Compare parsed JSON values while ignoring whitespace and object key order. Arrays are compared by position; additions, removals, and changes are reported using JSON Pointer paths. The result is a difference report, not an executable JSON Patch document.

Key features

  • Ignore formatting and object property order.
  • Compare array entries by their index.
  • Show paths and before/after values for added, removed, and changed data.

How to use

  1. Enter the baseline JSON and comparison JSON in their respective fields.
  2. Run the comparison to validate syntax and supported limits.
  3. Inspect equal, changeCount, and changes to see the result.

Use cases

  • Compare changes between API responses.
  • Find actual changes in configuration values.
  • Check whether differently formatted JSON documents are equivalent.

Frequently asked questions

Does array order matter?

Yes. Arrays are compared position by position. Inserting an element near the beginning can therefore produce changes at several later indexes.

What do ~0 and ~1 mean in a path?

JSON Pointer escapes ~ as ~0 and / as ~1. An empty path refers to the root value of the document.

How are large integers or long decimals handled?

Non-finite numbers and integers outside the safe integer range are rejected. A number is also rejected if its original decimal value differs from JavaScript’s round-trip number string, including underflow. For example, 0.1 and 100e-3 are accepted, but 0.10000000000000001 must be supplied as a JSON string.

What are the limits, and how are duplicate keys handled?

Each document supports up to 50,000 UTF-16 code units and a nesting depth of 100. Duplicate object keys use the last value under JSON.parse rules, so remove duplicate keys before comparison.

Privacy

Input and results are processed in browser memory. This tool does not upload or save them; resetting or leaving the page clears them. Shared advertising and visitor analytics may operate separately, but individual input contents are not included in tool-use events.

Related Tools

Indent ConverterNumber Base ConverterUnicode Escape ConverterWasm Module InspectorHreflang Matrix CheckerAST Query PlaygroundContainer Build GraphDependency Graph ExplorerSemver Range LabCron Schedule AuditorPatch Review WorkbenchSource Map ExplorerLocalization Catalog AuditorStructured Data ReviewerHTTP Archive AnalyzerWebhook Signature LabProtobuf Schema WorkbenchGraphQL Schema LabAvro Schema EvolutionLocal SQL WorkbenchSchema Form BuilderMesh Repair WorkbenchPipe Network LabRobot Arm Kinematics LabThermal Network LabBeam Response LabGear Train DesignerTolerance Stackup LabSensor Calibration FitPCB Stackup PlannerDigital Filter DesignerNetwork Reachability MapSun Shadow MapGPS Error SimulatorDigital Logic SimulatorAnalog Circuit LabMechanism Linkage LabAnalysis Mesh GeneratorOpenAPI Contract InspectorDatabase Migration PlannerDimensional Equation CheckerTruss Force LabBoolean Minimization LabControl Response LabQueueing Simulation LabGeofence Event SimulatorCoordinate Reference LabSurvey Traverse LabRaster Classification LabChoropleth Design LabMap Print ComposerRaster Reprojection LabElevation Contour MakerTerrain Viewshed LabWatershed DelineatorMap Tile PackagerText File Encoding WorkbenchFilesystem Portability AuditorSBOM License ExplorerFile Signature Auditornpm Lockfile Conflict ResolverSource Secret AuditorOffline Web Package BuilderCertificate Chain InspectorTorrent Metainfo InspectorChunked File PackagerEncrypted File VaultDuplicate File FinderArchive WorkbenchDesign Token ManagerSpacing Token DesignerResponsive Type SystemPackaging Dieline DesignerSVG Icon Sprite PackerFlex Layout PlaygroundCSS Grid PlaygroundRegex Equivalence LabMarkdown Repository AuditorLog Template MinerResponsive Layout AuditorEmail Template PreviewInternal Link GraphState Machine TesterPetri Net SimulatorGit History VisualizerCurl Request WorkbenchBinary Protocol DesignerHex File EditorBinary Patch WorkbenchFile Signature WorkbenchAPI Mock SandboxSchema Column MapperEvent Log SessionizerER Diagram DesignerTime Series Gap AuditorStratified Data SplitterData Lineage DesignerDecision Tree LabData Anonymization WorkbenchData Expectation RunnerJSON Schema ValidatorBasket Pattern AnalyzerRobots Policy TesterSEO HTML AuditorAccessibility Structure AuditorSyndication Feed WorkbenchIndexNow Payload BuilderCrawl Log AnalyzerCSP Policy WorkbenchSearch Performance AnalyzerCSV Formula Risk AuditorCORS Response SimulatorCache Header LabCookie Policy InspectorWeb Vitals Trace LabSitemap Health AuditorBatch File RenamerFile Manifest VerifierFolder Space MapFolder Difference ReviewerRoute Order OptimizerGeoJSON Map EditorPolygon Overlay LabCartographic Label PlacerSpatial Table JoinGeoJSON Topology AuditorGPX Track AnalyzerTrack Privacy RedactorCSV Table JoinCSV Pivot WorkbenchScientific Data ProfilerTabular Cleaning WorkbenchRecord ReconciliationData Dictionary BuilderCanonical Graph AuditorRedirect Plan TesterHTTP response and ping reference testBrowser and System InformationJSON ↔ YAML ConverterXML ↔ JSON ConverterHTML FormatterJavaScript MinifierMock Data Generator.gitignore GeneratorLicense GeneratorUser-Agent ParserPassword Strength CheckerCode to ImageXML FormatterHTTP Status Code LookupMIME Type LookupJS & SQL String EscapeCSS Box Shadow GeneratorCSS Gradient GeneratorUnicode InspectorMarkdown Table GeneratorBase64 EncoderJSON FormatterURL EncoderSQL FormatterCron Expression GeneratorRegex TesterUUID GeneratorHash GeneratorTimestamp ConverterJWT DecoderHTML Entity ConverterMarkdown PreviewCSS MinifierMeta Tag GeneratorJSON ↔ CSVCase ConverterImage to Base64
Explore all Dev Tools tools →Image/Media →Text/Convert →Life/Fun →