Page MenuHomeFeedback Tracker

[Feature Request] Please improve JsonFileLoader class
Feedback, UrgentPublic

Description

Will be very helpful instead jus throwing error when loaded json file is invalid, give us at least filename with path and even for non experienced people some message like

"Trying to load invalid JSON file path\to\that\damn.json - please validate it before deploy to server. You can use for example https://jsonlint.com"

Almost every day trying explain people that they have mistake somewhere.

Right now you providing for example this error when JSON is invalid:

JSON ERROR:
Invalid value.
Function: 'Error'
Stack trace:
scripts/1_Core/proto\endebug.c:92
scripts/3_Game/tools\jsonfileloader.c:29
rag/rag_thunderstruck/scripts/3_Game/rag_thunderstruck\ragtsconfig.c:65
rag/rag_thunderstruck/scripts/5_Mission/rag_thunderstruck\missionserver.c:6
$CurrentDir:mpmissions\empty.deerisle\init.c:110

which is not very helpful

Details

Severity
Feature
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
General
Steps To Reproduce

load invalid json file using jsonfileloader

Additional Information

should be trivial but very useful feature for consoles as well

Event Timeline

Hunterz created this task.Jul 30 2023, 8:26 AM
Tyson added a subscriber: Tyson.Jul 30 2023, 8:31 AM

That would be useful and in addition to that, a line where the parser said: "nope, that's not what I expected in line ..." would be perfect

Geez changed the task status from New to Feedback.Jul 31 2023, 10:50 AM