I am looking for a nice code snippet or module to read the JSON part of the markdown file. It should detect the length of the JSON block automatically.
I am sure this is already solved in a clean way and I do not want to reinvent the wheel but could not find a ready to use solution yet.
This question has been asked before, it seems – my favorite search engine easily finds an answer from 2018. That has nothing to do with Hugo, it’s a Python issue.
I agree that it’s not a pure Hugo question. But it’s wrong to say that it has nothing to do with Hugo. Is is even an FAQ. In the Meantime I found “from frontmatter.default_handlers import JSONHandler” However I am not sure, if this is the best way to go.