From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "string" |
|---|
| subject | "Library:JSON for Modern C++" |
|---|
| claim | "Every nlohmann::json exception message starts with [json.exception.<name>.<id>] followed by a space; parse errors continue with 'parse error at line L, column C: ' or 'parse error at byte N: ' then 'syntax error while parsing <context> - unexpected <token>; expected <token>'." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "JSON for Modern C++" |
|---|
| observed_in | |
|---|
|
|---|
| data | | value | "[json.exception." |
|---|
| meaning | "First literal piece of every message; the rest is built at run time from separate literals: the exception name ('parse_error', 'type_error', ...), '] ', 'parse error', ' at line ', ', column ' or ' at byte ', ': ', 'syntax error ', 'while parsing ', 'unexpected ', '; expected ' and the lexer token names ('end of input', ...). Search for these pieces, not for the assembled message" |
|---|
| encoding | "ascii" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "prefix concat and parse_error::create" |
|---|
| repo | "https://github.com/nlohmann/json" |
|---|
| commit | "0e95fe8200adbf0e033d0c0818eea473e1d4d346" |
|---|
| path | "include/nlohmann/detail/exceptions.hpp" |
|---|
| lines | "146, 262-274" |
|---|
|
| type | "source" |
|---|
| detail | "exception_message builds the syntax error text" |
|---|
| repo | "https://github.com/nlohmann/json" |
|---|
| commit | "0e95fe8200adbf0e033d0c0818eea473e1d4d346" |
|---|
| path | "include/nlohmann/detail/input/parser.hpp" |
|---|
| lines | "528-556" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Exception message prefix" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T17:20:32.169Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:19:46.089Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read exceptions.hpp at 0e95fe82 line 146 concat("[json.exception.", ename, '.', id, "] "), lines 260-275 parse_error::create ("parse error", " at line ", ", column ", " at byte ", ": ") and position_string at 303-306; parser.hpp 528-556 exception_message builds "syntax error ", "while parsing ", "- ", "unexpected ", "; expected "." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T02:17:59.396Z" |
|---|
| summary | "The full message is built at run time with concat() (exceptions.hpp 146, 262-274; parser.hpp 528-556), so the long value was never a single literal in a binary; value now the literal fragment…" |
|---|
| changed | |
|---|
|
|
|---|