{"slug": "publishing-partly-verified-community-data-as-json-null-beats-a-guess-gta-6-cheat", "title": "Publishing partly-verified community data as JSON: null beats a guess (GTA 6 cheat list example)", "summary": "A developer published a fan-made GTA 6 cheat-code reference as a single JSON file, designing the schema so that 44 of the 61 cheats with no confirmed button sequence carry null values and a confirmed: false flag rather than guessed sequences. The file uses fixed-token arrays for button inputs, separate ps5 and xbox fields, top-level counts, and CC BY 4.0 license and attribution fields, with a static HTML table generated by a short Python script and served via GitHub Pages.", "body_md": "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.\n\nHere is the schema I settled on, the reasoning, and a few `jq` one-liners for using it.\n\n```\n{\n  \"id\": \"250000\",\n  \"name\": \"$250,000\",\n  \"category\": \"Player\",\n  \"effect\": \"Instantly adds $250,000 to your wallet.\",\n  \"unlock\": \"Finish the story (all 91 missions).\",\n  \"ps5\":  [\"UP\", \"RIGHT\", \"DOWN\", \"LEFT\", \"UP\", \"LEFT\", \"DOWN\", \"RIGHT\"],\n  \"xbox\": [\"UP\", \"RIGHT\", \"DOWN\", \"LEFT\", \"UP\", \"LEFT\", \"DOWN\", \"RIGHT\"],\n  \"confirmed\": true,\n  \"page\": \"https://gtacheats6.com/money-cheats\"\n}\n```\n\nA few decisions worth explaining:\n\n`\"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\nThis 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.\n\nWith `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:\n\n```\n\"counts\": { \"total\": 61, \"confirmed\": 17, \"unconfirmed\": 44 }\nURL=https://raw.githubusercontent.com/zhangwenhao66/gta6-cheats-json/main/gta6-cheats.json\n\n# every confirmed cheat as \"category, name, sequence\"\ncurl -s $URL | jq -r '.cheats[] | select(.confirmed) | \"\\(.category)\\t\\(.name)\\t\\(.ps5 | join(\" \"))\"'\n\n# how many are confirmed per category\ncurl -s $URL | jq '.counts.confirmed_by_category'\n\n# names of cheats still waiting for a verified sequence\ncurl -s $URL | jq -r '.cheats[] | select(.confirmed | not) | .name'\n```\n\nGitHub 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](https://zhangwenhao66.github.io/gta6-cheats-json/).\n\nThe 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.", "url": "https://wpnews.pro/news/publishing-partly-verified-community-data-as-json-null-beats-a-guess-gta-6-cheat", "canonical_source": "https://dev.to/owen_zhang_e9c74da15a9fed/publishing-partly-verified-community-data-as-json-null-beats-a-guess-gta-6-cheat-list-example-1gld", "published_at": "2026-11-26 13:12:29+00:00", "updated_at": "2026-11-26 13:19:13.595413+00:00", "lang": "en", "topics": ["structured-data", "developer-tools"], "entities": ["GTA 6", "GitHub Pages", "GitHub"], "also_reported_by": [], "takeaway": "Represent unverified community data as null with an explicit confirmed flag and top-level counts, so downstream consumers decide how to display a guess instead of inheriting one as fact.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/publishing-partly-verified-community-data-as-json-null-beats-a-guess-gta-6-cheat", "markdown": "https://wpnews.pro/news/publishing-partly-verified-community-data-as-json-null-beats-a-guess-gta-6-cheat.md", "text": "https://wpnews.pro/news/publishing-partly-verified-community-data-as-json-null-beats-a-guess-gta-6-cheat.txt", "jsonld": "https://wpnews.pro/news/publishing-partly-verified-community-data-as-json-null-beats-a-guess-gta-6-cheat.jsonld"}}