)]}'
{
  "commit": "322063822f66533bb81ef8e938fd07e5f6394917",
  "tree": "8a21b71fcee117229057bf9f6b6b8678521af8be",
  "parents": [
    "ccbbe8d0f02e7ce6bf0b04b7457b0aa652fb5009"
  ],
  "author": {
    "name": "Niels Lohmann",
    "email": "mail@nlohmann.me",
    "time": "Mon Nov 23 07:34:10 2026"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Nov 23 07:34:10 2026"
  },
  "message": "Cut long tokens in parse error messages at UTF-8 character boundaries (#6136)\n\n* Cut long tokens in parse error messages at UTF-8 character boundaries\n\nA parse error message shows a token of more than 8192 bytes by its\nfirst and its last 4096 bytes around \"...\". The cuts were at fixed byte\noffsets, so they could split a UTF-8 character: for valid UTF-8 input,\nwhat() and the last token passed to SAX parse_error() were not valid\nUTF-8, and storing the message in a json value and dumping it threw\ntype_error.316.\n\nMove the end of the first part back and the start of the last part\nforward to a character boundary, by at most three bytes each. The\nlexer always reads bytes (wide strings are converted to UTF-8 first),\nand the decision depends only on bytes inside the two parts, so the\nmessage stays the same for every kind of input. Both parts only get\nshorter, so the buffers that keep the token need no more room.\n\nSigned-off-by: Niels Lohmann \u003cmail@nlohmann.me\u003e\n\n* Name the UTF-8 cut helpers after what they do to the buffer\n\nSigned-off-by: Niels Lohmann \u003cmail@nlohmann.me\u003e\n\n* Ignore the dump() result in the long-token test explicitly\n\nGCC rejects the discarded nodiscard result with -Werror\u003dunused-result.\n\nSigned-off-by: Niels Lohmann \u003cmail@nlohmann.me\u003e\n\n---------\n\nSigned-off-by: Niels Lohmann \u003cmail@nlohmann.me\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e75ecc3556617909ac380a8a957b8b75d499f98a",
      "old_mode": 33188,
      "old_path": "docs/mkdocs/docs/home/exceptions.md",
      "new_id": "b9457523fdcc5581074a594988f42725d863467f",
      "new_mode": 33188,
      "new_path": "docs/mkdocs/docs/home/exceptions.md"
    },
    {
      "type": "modify",
      "old_id": "54420867b6734520e3d70702c9915394640dced9",
      "old_mode": 33188,
      "old_path": "include/nlohmann/detail/input/lexer.hpp",
      "new_id": "90c5079c406710ec2b02a61342ca724502b01f2b",
      "new_mode": 33188,
      "new_path": "include/nlohmann/detail/input/lexer.hpp"
    },
    {
      "type": "modify",
      "old_id": "b7e0efc85ffdc618bf28c14f4dcc8cd04ff0c213",
      "old_mode": 33188,
      "old_path": "single_include/nlohmann/json.hpp",
      "new_id": "44a5b6cd1db580178eb9fa1ed4069dadc688045e",
      "new_mode": 33188,
      "new_path": "single_include/nlohmann/json.hpp"
    },
    {
      "type": "modify",
      "old_id": "c64a380cff61a0d6ab128a86e7a6f69e113daead",
      "old_mode": 33188,
      "old_path": "tests/src/unit-class_parser.cpp",
      "new_id": "bf9ff23f533e46acaaf2567ff46099df5f74acb2",
      "new_mode": 33188,
      "new_path": "tests/src/unit-class_parser.cpp"
    }
  ]
}
