# serialize

Serializers that convert structured [`Changelog`](https://www.hyperfrontend.dev/docs/libraries/versioning/changelog/models/#api-Changelog) objects back to Keep-a-Changelog markdown or to JSON.

[`serializeChangelog`](https://www.hyperfrontend.dev/docs/libraries/versioning/changelog/serialize/#api-serializeChangelog) produces a stable, deterministic markdown rendering driven by [`SerializeOptions`](https://www.hyperfrontend.dev/docs/libraries/versioning/changelog/serialize/#api-SerializeOptions) (heading style, bullet markers, link references, spacing). Helpers ([`getSectionHeading`](https://www.hyperfrontend.dev/docs/libraries/versioning/changelog/serialize/#api-getSectionHeading), [`formatLink`](https://www.hyperfrontend.dev/docs/libraries/versioning/changelog/serialize/#api-formatLink), [`getListMarker`](https://www.hyperfrontend.dev/docs/libraries/versioning/changelog/serialize/#api-getListMarker), [`createSpacing`](https://www.hyperfrontend.dev/docs/libraries/versioning/changelog/serialize/#api-createSpacing)) expose the underlying templating primitives for downstream tools that want to format individual fragments. [`serializeChangelogToJson`](https://www.hyperfrontend.dev/docs/libraries/versioning/changelog/serialize/#api-serializeChangelogToJson) and [`toJsonObject`](https://www.hyperfrontend.dev/docs/libraries/versioning/changelog/serialize/#api-toJsonObject) produce a [`JsonSerializeOptions`](https://www.hyperfrontend.dev/docs/libraries/versioning/changelog/serialize/#api-JsonSerializeOptions)-controlled JSON shape suitable for archiving or for tools that prefer structured data over markdown.

---

Canonical page: https://www.hyperfrontend.dev/docs/libraries/versioning/changelog/serialize/
This file: https://www.hyperfrontend.dev/docs/libraries/versioning/changelog/serialize.md
Documentation index: https://www.hyperfrontend.dev/llms.txt
