{
  "schemaVersion": "1.0",
  "item": {
    "slug": "json",
    "name": "JSON",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/ivangdavila/json",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/json",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/json",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=json",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/json"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/json",
    "agentPageUrl": "https://openagent3.xyz/skills/json/agent",
    "manifestUrl": "https://openagent3.xyz/skills/json/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/json/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Schema & Validation",
        "body": "Always validate against JSON Schema before processing untrusted input—don't assume structure\nDefine schemas for API responses—catches contract violations early\nUse additionalProperties: false to reject unknown fields in strict contexts"
      },
      {
        "title": "Naming & Consistency",
        "body": "Pick one convention and stick to it—camelCase for JS ecosystems, snake_case for Python/Ruby\nAvoid mixed conventions in same payload—userId alongside user_name confuses consumers\nUse plural for collections: \"users\": [] not \"user\": []"
      },
      {
        "title": "Null Handling",
        "body": "Distinguish \"field is null\" from \"field is absent\"—they mean different things\nOmit optional fields entirely rather than sending null—reduces payload, clearer intent\nDocument which fields are nullable in schema—don't surprise consumers"
      },
      {
        "title": "Dates & Times",
        "body": "Always use ISO 8601: \"2024-01-15T14:30:00Z\"—no ambiguous formats like \"01/15/24\"\nInclude timezone or use UTC with Z suffix—local times without zone are useless\nTimestamps as strings, not epoch integers—human-readable, no precision loss"
      },
      {
        "title": "Numbers & IDs",
        "body": "Large IDs as strings: \"id\": \"9007199254740993\"—JavaScript loses precision above 2^53\nMoney as string or integer cents—never float: \"price\": \"19.99\" or \"price_cents\": 1999\nAvoid floats for anything requiring exactness—currency, coordinates with precision"
      },
      {
        "title": "Structure Best Practices",
        "body": "Keep nesting shallow—3 levels max; flatten or split into related endpoints\nConsistent envelope for APIs: {\"data\": ..., \"meta\": ..., \"errors\": ...}\nPaginate large arrays—never return unbounded lists; include next/prev links or cursor"
      },
      {
        "title": "API Response Patterns",
        "body": "Errors as structured objects: {\"code\": \"INVALID_EMAIL\", \"message\": \"...\", \"field\": \"email\"}\nInclude request ID in responses for debugging: \"request_id\": \"abc-123\"\nReturn created/updated resource in response—saves client a follow-up GET"
      },
      {
        "title": "Serialization",
        "body": "toJSON() method silently overrides output—Date becomes string, custom classes may surprise\nMap, Set, BigInt don't serialize—need custom replacer function\nCircular references throw—detect cycles before stringify or use libraries like flatted\nStrip sensitive data before serializing—don't rely on client to ignore extra fields"
      },
      {
        "title": "Parsing Safety",
        "body": "__proto__ key can pollute prototypes—sanitize input or use Object.create(null)\nParse in try/catch—malformed JSON from external sources is common\nReviver function for type reconstruction: dates, BigInt, custom types"
      },
      {
        "title": "Unicode",
        "body": "Emoji need surrogate pairs in escapes: 😀 = \\uD83D\\uDE00—single \\u1F600 invalid\nControl chars U+0000–U+001F must be escaped—pasted text may contain invisible ones\nBOM at file start breaks parsing—strip \\uFEFF from file input"
      }
    ],
    "body": "Schema & Validation\nAlways validate against JSON Schema before processing untrusted input—don't assume structure\nDefine schemas for API responses—catches contract violations early\nUse additionalProperties: false to reject unknown fields in strict contexts\nNaming & Consistency\nPick one convention and stick to it—camelCase for JS ecosystems, snake_case for Python/Ruby\nAvoid mixed conventions in same payload—userId alongside user_name confuses consumers\nUse plural for collections: \"users\": [] not \"user\": []\nNull Handling\nDistinguish \"field is null\" from \"field is absent\"—they mean different things\nOmit optional fields entirely rather than sending null—reduces payload, clearer intent\nDocument which fields are nullable in schema—don't surprise consumers\nDates & Times\nAlways use ISO 8601: \"2024-01-15T14:30:00Z\"—no ambiguous formats like \"01/15/24\"\nInclude timezone or use UTC with Z suffix—local times without zone are useless\nTimestamps as strings, not epoch integers—human-readable, no precision loss\nNumbers & IDs\nLarge IDs as strings: \"id\": \"9007199254740993\"—JavaScript loses precision above 2^53\nMoney as string or integer cents—never float: \"price\": \"19.99\" or \"price_cents\": 1999\nAvoid floats for anything requiring exactness—currency, coordinates with precision\nStructure Best Practices\nKeep nesting shallow—3 levels max; flatten or split into related endpoints\nConsistent envelope for APIs: {\"data\": ..., \"meta\": ..., \"errors\": ...}\nPaginate large arrays—never return unbounded lists; include next/prev links or cursor\nAPI Response Patterns\nErrors as structured objects: {\"code\": \"INVALID_EMAIL\", \"message\": \"...\", \"field\": \"email\"}\nInclude request ID in responses for debugging: \"request_id\": \"abc-123\"\nReturn created/updated resource in response—saves client a follow-up GET\nSerialization\ntoJSON() method silently overrides output—Date becomes string, custom classes may surprise\nMap, Set, BigInt don't serialize—need custom replacer function\nCircular references throw—detect cycles before stringify or use libraries like flatted\nStrip sensitive data before serializing—don't rely on client to ignore extra fields\nParsing Safety\n__proto__ key can pollute prototypes—sanitize input or use Object.create(null)\nParse in try/catch—malformed JSON from external sources is common\nReviver function for type reconstruction: dates, BigInt, custom types\nUnicode\nEmoji need surrogate pairs in escapes: 😀 = \\uD83D\\uDE00—single \\u1F600 invalid\nControl chars U+0000–U+001F must be escaped—pasted text may contain invisible ones\nBOM at file start breaks parsing—strip \\uFEFF from file input"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ivangdavila/json",
    "publisherUrl": "https://clawhub.ai/ivangdavila/json",
    "owner": "ivangdavila",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/json",
    "downloadUrl": "https://openagent3.xyz/downloads/json",
    "agentUrl": "https://openagent3.xyz/skills/json/agent",
    "manifestUrl": "https://openagent3.xyz/skills/json/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/json/agent.md"
  }
}