Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KeySegment

JSONPointer segment representing a key

param

Hierarchy

  • KeySegment

Index

Constructors

Properties

Methods

Constructors

constructor

  • Create a new KeySegment

    Parameters

    • key: string

      the key of the segment

    Returns KeySegment

Properties

Readonly expression

expression: string

The key of the segment

Methods

equals

  • equals(other: Segment | null): boolean
  • Compare two segments.

    Allows comparison of the KeySegment with another KeySegment or a IndexSegment.

    Parameters

    Returns boolean

    'true' if the other segment is an KeySegment and the keys are equal

toString

  • toString(): string
  • Convert the key segment to a string

    Returns string

    a string representation of the segment

Copyright © 2025 DiffusionData Ltd. All Rights Reserved.