create a custom html table using different json array with the same api