Write to docs/output/api.json