The task is to apply .to_json() method on each row of a pandas DataFrame.
.to_json()
The problem is that the execution time of the method is not stable.