Changed JSON validator to work with update methods.