Subject: | Error loading UTF-8 JSON with BOM? |
I'm using Config::Any::JSON in conjunction with FormFu.
In a :FormConfig action, if the JSON that it loads is UTF-8 encoded and
has the BOM, I get this error:
Error parsing ...\root\forms\index.json: malformed JSON string, neither
array, object, number, string or atom, at character offset 0
["\x{feff}{n "id": "c..."] at
C:/strawberry/Perl/site/lib/Config/Any/JSON.pm line 54.