Earlier quoted context omitted.
Sanitizing data is string based not data structure based though.
Well first off, that's not correct anyways; type-conformancy is a very valid and important part of data sanitization. E.g. does the SSN consist of 3 valid integers split on dashes? If not, it ain't a proper SSN. Catching that typeError is much safer than trying to roll regex or character allow/blocklists. But also, the manifesto never mentions data structures. It says > I’m not smart enough to figure out how to trans…
You should validate the data and sanitize the data...but if youre transforming data youre headed into a state management nightmare.
State management is the number one enemy and other than sanitizing and validating both the data and structure should be considered mostly immutable.