After looking at the new code for a few days, I didn't like it anymore. To prepare for the future, a few fields will be added to the json_error_t struct later. This reverts commit 23dd078c8d. Some adjustments were needed because of newer commits.
23dd078c8d