In the ArduinoJson library, it is easy to create JSON entries as shown below.
StaticJsonDocument<512> json_doc;
String some_string = "Hello there!";
json_doc["some_string"] = some_string;
The question is what is the best way to check whether the entry was successfully created? This would allow error handling to be implemented and the error to be found quickly if the entries that are created change and grow over time.