treeloom
    Preparing search index...

    Function domItemToJson

    • Convert DOM Item to JSON string.

      Parameters

      • item: CoreItem
      • options: { propertiesToDelete?: string[] } = {}
        • OptionalpropertiesToDelete?: string[]

          Additional property names to strip from every item in the tree for this call only, alongside the always-stripped internal ones. Unlike jsonExclusions (set once on an item itself, so every caller sees the same exclusions), this is per-call: the same item can be serialized differently for different callers - for example, a server redacting the same tree once per viewer - without mutating the item.

      Returns string