jService · JSON Structure

Jservice Clue Structure

Structural definition of a Jeopardy! clue as served by the jService API.

Type: object Properties: 8 Required: 4
Games And ComicsTriviaJeopardyOpen SourceRubyRailsPublic APIs

jServiceClue is a JSON Structure definition published by jService, describing 8 properties, of which 4 are required. It conforms to the https://json-structure.org/v1/schema meta-schema.

Properties

id answer question value airdate category_id game_id invalid_count

Meta-schema: https://json-structure.org/v1/schema

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/v1/schema",
  "name": "jServiceClue",
  "description": "Structural definition of a Jeopardy! clue as served by the jService API.",
  "type": "object",
  "properties": {
    "id": { "type": "int32", "primary": true },
    "answer": { "type": "string", "maxLength": 500 },
    "question": { "type": "string", "maxLength": 2000 },
    "value": { "type": "int32", "nullable": true, "description": "Dollar value; null = Final Jeopardy." },
    "airdate": { "type": "datetime" },
    "category_id": { "type": "int32", "references": "jServiceCategory.id" },
    "game_id": { "type": "int32", "nullable": true },
    "invalid_count": { "type": "int32", "nullable": true, "default": 0 }
  },
  "indexes": [
    { "name": "by_category", "fields": ["category_id"] },
    { "name": "by_game", "fields": ["game_id"] },
    { "name": "by_airdate", "fields": ["airdate"] },
    { "name": "by_value", "fields": ["value"] }
  ],
  "required": ["id", "answer", "question", "category_id"]
}