methodtJsonValue.SetValue
function SetValue(const aName: string; aValue: tJsonValue): tJsonValue;
The Add* family always appends, which is what building a document wants and what AMENDING one must not do - adding a name that is already present would leave the object carrying it twice. Set* replaces the value of an existing member IN PLACE, keeping its position so an amended document does not reorder itself, and appends when the name is absent. The replaced value is freed. Remove deletes a member and reports whether there was one.