hugo/parser/metadecoders
AcClassic e30d711c29 parser/metadecoders: Add empty /data JSON file as empty map
When fetching JSON files from the /data folder that are empty they will
be added as empty map[string]any. This makes sure that no empty JSON
file causes the site to crash because of a failed unmarshal. This
happens because empty is not a valid JSON string. It is therefore
important to check the lenght of the data before passing it to the JSON
unmarshal function.

Fixes #8601
2022-12-14 18:03:47 +01:00
..
decoder.go parser/metadecoders: Add empty /data JSON file as empty map 2022-12-14 18:03:47 +01:00
decoder_test.go parser/metadecoders: Add empty /data JSON file as empty map 2022-12-14 18:03:47 +01:00
format.go Implement XML data support 2021-12-02 17:30:36 +01:00
format_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00