Contoh format JSON dan JavaScript untuk pemetaan lokal daftar permainan ttt888.
JavaScript
// Konfigurasi objek lokal katalog game ttt888
const localGameCatalog = {
platform: "ttt888",
country: "id",
supportedGames: [
{ id: "150", name: "Gemstones Gold", category: "Slot" },
{ id: "144", name: "Forge Wealth", category: "Slot" },
{ id: "113", name: "Btrfly Blossom", category: "Slot" },
{ id: "001", name: "Diaochan", category: "Slot" },
{ id: "121", name: "Wild Coaster", category: "Slot" }
],
filterByCategory: function(categoryName) {
return this.supportedGames.filter(g => g.category === categoryName);
}
};
// Menampilkan daftar slot lokal
const slotGames = localGameCatalog.filterByCategory("Slot");
console.log("Daftar Game:", slotGames);
JSON
{
"platform": "ttt888",
"country": "id",
"supportedGames": [
{
"id": "150",
"name": "Gemstones Gold",
"category": "Slot"
},
{
"id": "144",
"name": "Forge Wealth",
"category": "Slot"
},
{
"id": "113",
"name": "Btrfly Blossom",
"category": "Slot"
},
{
"id": "001",
"name": "Diaochan",
"category": "Slot"
},
{
"id": "121",
"name": "Wild Coaster",
"category": "Slot"
}
]
}