Sign in Join
FPDoc Onlineexperiment

TJSONApplier.Execute procedure

Member of TJSONApplierpublicIn unit fpJsonApply

Executes the JSON merge operation from apply JSON to source JSON

Declaration

pascal
procedure Execute; virtual

Description

The Execute method performs the main JSON merge operation. It loads the source and apply JSON objects from files if they are not already set, then applies the elements from the apply JSON object to the source JSON object. The result is stored in the DestJSON property. If file paths are specified, it starts merging at those specific locations within the JSON structures. If a destination filename is specified, the result is automatically saved to that file.

Errors

Raises EJSON exceptions when:

  • Source JSON object is empty
  • Apply JSON object is empty
  • JSON files do not contain valid JSON objects
  • Specified source or apply paths are not found or do not point to JSON objects

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.