docc2json is a tool that parses Apple's DocC JSON output and transforms it into a structured SDK schema. This allows you to reuse your Swift documentation in various environments.
docc2json utilizes JSON parsing techniques to extract information from the DocC JSON file. It then generates a new schema optimized for web documentation sites and other applications.
docc2json supports parsing class, struct, and actor definitions, extracting detailed information like access modifiers, declarations, and documentation objects. It also handles code examples and return value documentation.
docc2json can handle complex Swift code, including nested structures, protocols, and inheritance. However, extremely large or convoluted DocC files may require optimization.
docc2json primarily outputs a structured SDK schema, typically in JSON or YAML format, depending on the target platform's requirements.