Sign in Join
FPDoc Onlineexperiment

TJSONComparer class

In unit JsonComparer

Class for comparing JSON data structures

Declaration

pascal
TJSONComparer = class(TObject)

Inheritance

  1. TJSONComparer
  2. 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

EpsilonpublicFloating-point comparison tolerance

Methods

CompareArrayprotected
CompareObjectprotected
doCompareprotected
createpublicCreates a new JSON comparer instance
ComparepublicCompares 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.