gather json data to produce table