You are right that Jekyll doesn't have a pretty-json filter. I struggled with that and had used this approach in an example that I shared previously; it's been removed since, so I hope you didn't waste as much time on it as I did.
Anyway, I will comment on the individual files to describe the approaches, but it's pretty straightforward. I'm leaning toward the externalValue approach, but I want to check that it doesn't break any linters or code generators that are likely to be used (see #2).
Not intended for merge
You are right that Jekyll doesn't have a
pretty-json
filter. I struggled with that and had used this approach in an example that I shared previously; it's been removed since, so I hope you didn't waste as much time on it as I did.Anyway, I will comment on the individual files to describe the approaches, but it's pretty straightforward. I'm leaning toward the
externalValue
approach, but I want to check that it doesn't break any linters or code generators that are likely to be used (see #2).