feat(libSceJson2): add sce::Json::Parser::parse with a read callback #3571
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3571"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-11T13:30:15Z.
What
Adds
sce::Json::Parser::parse(Value&, int (*)(char&, void*), void*)to libSceJson2. It is the overload that reads its text through a callback, one character at a time.itqj2YmuAa8). Onmaina11c8f7fthe title has 8 missing imports, and its loader stops on the first of them:./app.elf: symbol lookup error: ./app.elf: undefined symbol: uBIN24Tv2MI(#3559). This is one of the others.0x3758280). It returns 0 with the next character inch. At the end of its data it writes'\0'and returns -1.'\0', then parses that text with the existing(text, size)overload. Results, errors and the rejection of trailing characters are therefore the same as there.guest_json's newStreamParsecovers three cases: a valid document (every character read, end marker included), a truncated one, and one with a trailing value. Onmainit does not link.Tested
Linux (CachyOS), RX 9070 XT, GCC, Release, on
maina11c8f7f:guest_jsonpasses.NGS2: system option flags are not implemented.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Tested and written by Claude (AI assistant) on a contributor's machine.
🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T13:30:37Z.
Progress report (
a11c8f7→95a92f3)📈 System libraries: 85.82% (+0.01%, +1 implemented functions)
✅ 1 implemented
_ZN3sce4Json6Parser5parseERNS0_5ValueEPFiRcPvES5_Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T16:31:51Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/TechnicalDebt.mdL132docs/dev/TechnicalDebt.mdL132Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T21:34:45Z.
Checked the build and
guest_json(passes; without the change the test doesn't link), the three cases inStreamParse, and the TechnicalDebt entry (right section, documents the unknown callback contract); merging.