_makeError

private fnJsonError _makeError(const(char)[] src, const size_t line, const size_t column, const size_t index, const JsonErrorCode code, const string msg) @safe

Build a structured error with a context window.

This function creates a JsonError with position information and a human-readable message that includes a source excerpt showing where the error occurred.

Parameters

srcThe source input buffer.
line1-based line number where the error occurred.
column1-based column number where the error occurred.
index0-based byte offset into the original input.
codeMachine-readable error category.
msgBase error message.

Returns

A JsonError struct with all fields populated.