Unit 'JsonComparer' Package
[Overview][Classes][Index] [#fcl]

TJSONComparer

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Class for comparing JSON data structures

Declaration

Source position: jsoncomparer.pp line 34

type TJSONComparer = class(TObject)

public

  constructor create();

  

Creates a new JSON comparer instance

  procedure Compare();

  

Compares two JSON data structures

  property Epsilon: Double; [rw]

  

Floating-point comparison tolerance

end;

Inheritance

TJSONComparer

  

Class for comparing JSON data structures

|

TObject

Description

TJSONComparer provides functionality for deep comparison of JSON data structures. The class can compare JSON objects, arrays, and primitive values (null, boolean, number, string). Differences are reported with path information indicating the exact location of discrepancies. Floating-point numbers are compared using the configurable Epsilon tolerance value. Comparison errors are collected in a TStrings object provided during construction.

See also

create

  

Creates a new JSON comparer instance

Compare

  

Compares two JSON data structures

Epsilon

  

Floating-point comparison tolerance


Documentation generated on: Mar 09 2026