more generic way to setup a text view to edit json