Merge branch 'update/thresholdprofile_add_json' into 'master'

Add to_json for thresholdprofile

See merge request !4380

(cherry picked from commit 0154978c)

2750b6d0 Add to_json for thresholdprofile
efaa08e3 fix MyPy
60899c1c add migration
f37a4c3d Clean print.
9 jobs for !4387 with cherry-pick-0154978c in 51 seconds (queued for 6 seconds)
merge request