For a fuse.js search, I create a json file.
With Hugo 0.109:
[{"NPA":["1853","1856","1860"],...
With Hugo 0.110:
[{"NPA":[1853,1856,1860],...
So with 110, I have an array of numbers. With 109 I had an array of strings. The fuse.js is broken with the 110 version (but it is my problem). I’m going to debug.
Here is my question. Where does this change in the final JSON come from:
- YAML metadata parsing?
- the jsonify filter transformation?
- the minification?
My repo is here: GitHub - nfriedli/ma-paroisse.ch: Un site simple pour retrouver une paroisse réformée de Suisse romande en 5 secondes.
And the JSON generator is here: ma-paroisse.ch/index.json.json at main · nfriedli/ma-paroisse.ch · GitHub
Subsidiary question. Is it possible to force an array of strings instead of an array of numbers, even if the input is int / numbers in YAML?