Newtonsoft.Json by James Newton-King

<PackageReference Include="Newtonsoft.Json" Version="6.0.3" />

 JsonTextReader

Represents a reader that provides fast, non-cached, forward-only access to JSON text data.
public int LineNumber { get; }

Gets the current line number.

public int LinePosition { get; }

Gets the current line position.

public JsonTextReader(TextReader reader)

Initializes a new instance of the JsonReader class with the specified TextReader.

public bool HasLineInfo()

Gets a value indicating whether the class can return line information.