I keep a fan reference site for GTA 6 cheat codes, and people kept asking for the list in a form they could use in their own tools: Discord bots, stream overlays, spreadsheets. So I published it as a single JSON file. Most of the work turned out to be deciding how to represent data that is only partly verified, because 44 of the 61 cheats have names and effects but no button sequence anyone has confirmed in-game.
Here is the schema I settled on, the reasoning, and a few jq one-liners for using it.
{
"id": "250000",
"name": "$250,000",
"category": "Player",
"effect": "Instantly adds $250,000 to your wallet.",
"unlock": "Finish the story (all 91 missions).",
"ps5": ["UP", "RIGHT", "DOWN", "LEFT", "UP", "LEFT", "DOWN", "RIGHT"],
"xbox": ["UP", "RIGHT", "DOWN", "LEFT", "UP", "LEFT", "DOWN", "RIGHT"],
"confirmed": true,
"page": "https://gtacheats6.com/money-cheats"
}
A few decisions worth explaining:
"UP RIGHT DOWN" invites every consumer to write their own splitter, and someone will split on commas. An array of fixed tokens (UP, DOWN, LEFT, RIGHT) is unambiguous and easy to render as icons. ps5 and xbox are separate even though they are identical today.entry object, instead of being repeated in 61 records.null instead of a guess
This is the part I'd recommend to anyone publishing community data. For the 44 unverified cheats, ps5 and xbox are null and confirmed is false. The tempting alternative is to fill them with the most-repeated sequence from forums. That makes the file look complete, and it means every downstream tool shows a guess as if it were fact, with no way to tell the difference.
With null the consumer has to decide what to show, which is the right place for that decision. Counts at the top level make the state visible without scanning the list:
"counts": { "total": 61, "confirmed": 17, "unconfirmed": 44 }
URL=https://raw.githubusercontent.com/zhangwenhao66/gta6-cheats-json/main/gta6-cheats.json
curl -s $URL | jq -r '.cheats[] | select(.confirmed) | "\(.category)\t\(.name)\t\(.ps5 | join(" "))"'
curl -s $URL | jq '.counts.confirmed_by_category'
curl -s $URL | jq -r '.cheats[] | select(.confirmed | not) | .name'
GitHub Pages serves the repository as a site, so I generate a plain HTML table from the JSON with a short Python script and commit it next to the data. No framework and no client-side fetch, so the table is readable without JavaScript and search engines see the content: the table view.
The data is CC BY 4.0. The file carries license and attribution fields, so the terms travel with every copy, including ones that get pasted into a bot without the README.