autojanet/skills/understand/languages/json.md
Zoë cc74ad0bd0
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
fix: use library/ Harbor project, add skills, fix pipeline secrets
- .woodpecker.yaml: image paths -> library/autojanet-{agent,dispatcher}
- .woodpecker.yaml: secret names RS_HARBOR_USER / RS_HARBOR_PASS (global)
- container/Dockerfile: restore COPY skills/, skills/ populated from opencode config
- skills/: 84 opencode skills bundled into image
- k8s/manifests: update image refs to library/
2026-05-30 15:43:14 -07:00

1.7 KiB

JSON Language Prompt Snippet

Key Concepts

  • Strict Syntax: No trailing commas, no comments (unlike JSONC or JSON5), double-quoted strings only
  • Data Types: Objects, arrays, strings, numbers, booleans, and null — no undefined or date types
  • Nested Structure: Arbitrary nesting depth for hierarchical configuration or data
  • Schema Validation: JSON Schema ($schema keyword) for validating structure and types
  • JSONC: JSON with Comments variant used by VS Code, tsconfig.json, and other tooling
  • JSON5: Extended JSON allowing comments, trailing commas, unquoted keys, and more
  • JSON Lines (.jsonl): One JSON object per line for streaming data processing

Notable File Patterns

  • package.json — Node.js project manifest with dependencies, scripts, and metadata
  • tsconfig.json — TypeScript compiler configuration (actually JSONC)
  • .eslintrc.json — ESLint linting rules and configuration
  • *.schema.json — JSON Schema definitions for validation
  • composer.json — PHP Composer project manifest
  • appsettings.json — .NET application configuration
  • manifest.json — Browser extension or PWA manifest

Edge Patterns

  • package.json configures the build toolchain and defines project dependencies
  • tsconfig.json configures TypeScript compilation for all .ts files
  • JSON Schema files defines_schema for API request/response validation
  • Config JSON files configures the runtime behavior of the application

Summary Style

"Node.js project manifest defining N dependencies, build scripts, and project metadata." "TypeScript compiler configuration enabling strict mode with path aliases for monorepo packages." "JSON Schema defining the request/response structure for the user API endpoint."