added json view
added json formatter
allow changing formatter via config