For a given offset, evaluate the location in the JSON document. Each segment in the location path is either a property name or an array index.

  • Parameters

    • text: string
    • position: number

    Returns Location