Fixes Issue 9755 - Json template protection attribute output was wrong.