A possible implementation of an input renderer.
update to handle arrays of objects