cleaning up json table data