The interesting thing is, that if I try to import the json file manually via UI, then the script runs without problems. So some variable or property is probably changed during Json data import. May be it is possible to set this variable to the correct value just before the ‘fill_data_table_from_json_string’ is called?
Another idea would be to set the value of the source file field to the desired json file. Does anyone know how it can be done with python?