Constraints to Json