TJSONComparer class
Class for comparing JSON data structures
Declaration
TJSONComparer = class(TObject)Inheritance
- TJSONComparer
- 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
Properties
Epsilon | public | Floating-point comparison tolerance |
Methods
CompareArray | protected | |
CompareObject | protected | |
doCompare | protected | |
create | public | Creates a new JSON comparer instance |
Compare | public | Compares two JSON data structures |
Inherited
From TObject (41)
AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Destroy Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
