Add json annotation for Constraints, which was missed.