# JsonDataLocation

Where a JsonData value came from: its one-based line and column, and the source node.

Struct 

`OfficeIMO.Json`

**Namespace**

`OfficeIMO.Json`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[JsonData.cs:459](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Json/JsonData.cs#L459)

**Base**

`ValueType`

**Modifiers**

sealed

Where a [JsonData](/api/core/officeimo-json-jsondata/) value came from: its one-based line and column, and the source node.

## Inheritance

- ValueType
- JsonDataLocation

## Usage

Explore 8 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [JsonData.Location](/api/core/officeimo-json-jsondata/#property-location)

### Accepted by parameters 7

- Method [JsonData.CreateArray](/api/core/officeimo-json-jsondata/#method-createarray-collections-generic-ienumerable-officeimo-json-jsondata-officeimo-json-jsondatalocation) parameter `location`
- Method [JsonData.CreateBoolean](/api/core/officeimo-json-jsondata/#method-createboolean-boolean-officeimo-json-jsondatalocation) parameter `location`
- Method [JsonData.CreateNull](/api/core/officeimo-json-jsondata/#method-createnull-officeimo-json-jsondatalocation) parameter `location`
- Method [JsonData.CreateNumber](/api/core/officeimo-json-jsondata/#method-createnumber-decimal-officeimo-json-jsondatalocation) parameter `location`
- Method [JsonData.CreateObject](/api/core/officeimo-json-jsondata/#method-createobject-collections-generic-ienumerable-system-collections-generic-keyvaluepair-system-string-officeimo-json-jsondata-officeimo-json-jsondatalocation) parameter `location`
- Method [JsonData.CreateString](/api/core/officeimo-json-jsondata/#method-createstring-string-officeimo-json-jsondatalocation) parameter `location`
- Method [JsonData.ParseNumber](/api/core/officeimo-json-jsondata/#method-parsenumber-string-officeimo-json-jsondatalocation) parameter `location`

Filter members 

Show inherited

## Constructors

`public JsonDataLocation(int line, int column, object? source = null)` [#](#constructor-ctor-int32-int32-object)

[JsonData.cs:459](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Json/JsonData.cs#L459)

Creates a location. Lines and columns below 1 mean "unknown" and are stored as 0.

Parameters

**line int required**

**column int required**

**source object? = null optional**

## Inherited Methods

`public override bool Equals(object? obj)` [#](#method-equals-object)

Inherited from ValueType

Parameters

**obj object? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Inherited from ValueType

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public override string? ToString()` [#](#method-tostring)

Inherited from ValueType

Returns

`string?`

## Properties

`public int Line { get; }` [#](#property-line)

[JsonData.cs:465](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Json/JsonData.cs#L465)

Gets the one-based line, or 0 when unknown.

`public int Column { get; }` [#](#property-column)

[JsonData.cs:468](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Json/JsonData.cs#L468)

Gets the one-based column, or 0 when unknown.

`public object? Source { get; }` [#](#property-source)

[JsonData.cs:471](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Json/JsonData.cs#L471)

Gets the source node, such as a YamlNode or TomlNode, or null.

<!-- PowerForge markdown artifact sha256:65E6577A22F2CAC78BE61BE2854E6B607A9588BAF66CBA6522C044CC4C502B62 -->
