Sign in Join
FPDoc Onlineexperiment

TJSONObject.Delete procedure

Member of TJSONObjectpublicIn unit fpJson

Delete an element from the list by index.

Declaration

pascal
procedure Delete(Index: Integer)
procedure Delete(const AName: string)

Arguments

Index

Index of element in Items to delete.

AName

Name of element to delete.

Description

Delete deletes the element with given Index or AName from the list. The TJSONData element is freed. If a non-existing name is specified, no value is deleted.

Errors

If an invalid index is passed, an exception is raised.

See also

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