Take an input data and re-encode that data as view.
NOTE: this function should NEVER be used in any production code, it's only a test helper.
Optional
Take an input data and re-encode that data as view.
NOTE: this function should NEVER be used in any production code, it's only a test helper.