How to use backup json file with duplicati-cli?

What did you do? What did you get? What did you expect? See earlier posts for more such requests.

More vagueness. What is it and why is it bad (aside from bothering your script)? Exit codes should be

$ duplicati-cli help returncodes

Duplicati reports the following return/exit codes:
  0 - Success
  1 - Successful operation, but no files were changed
  2 - Successful operation, but with warnings
  50 - Backup uploaded some files, but did not finish
  100 - An error occurred
  200 - Invalid commandline arguments found

Note there is a forum topic now about 5 below this sharing thoughts on different ways to do exit codes.

What codes does duplicati-cli return?

You didn’t show what you ran, but you might have gotten a 2 due to this previously explained Warning: