Expected format: { id, title, author, children: [...] }
Each comment:
{ id, author, text, created_at?, children: [...] }
๐ก Tip: Have an LLM generate the payload with a prompt like:
Generate a sample JSON payload for a nested HN discussion that
might be returned via the Algolia API. The payload should contain no
more than 40 comments and will be for an article titled "Show HN: I
built a tool to visualize Hacker News comment threads"