discard_invalid option for arrays
discard_invalid for hashes