added json generator, jsp can now be passed a json object and display a table