Currently, there is a warning regarding the thread safety of json_parse_dispatch. We need some kind of lock to handle the issue. E.g., there could be a lock in json_parse_dispatch to ensure that the pointer is only reassigned once.