docc2json: Convert Apple DocC Documentation to Web-Friendly JSON Schema
By
Nedim
5mo ago· 1 min readenProduct
38/100
Stale
Bagelometer↗
Yesterday's bagel, baked twice. Familiar and a bit tough.
Score38Typepress releaseSentimentpositive
Summary
docc2json is a Go command-line tool that converts Apple DocC documentation output into a clean, structured JSON schema optimized for web documentation sites and external tooling. It addresses the limitation that Apple DocC's native JSON output is tightly coupled to Xcode's renderer, making it difficult to reuse for custom documentation sites. The tool focuses on reconstructing method signatures, extracting complete documentation, resolving cross-references, filtering access levels, and producing a schema suitable for SDK documentation outside the Apple ecosystem.
Apple DocC is great inside Xcode, but hard to reuse elsewhere. docc2json parses DocC JSON output and converts it into a clean, structured SDK schema optimized for web documentation sites, IDE tooling, and analysis.
