Skip Menu |

This queue is for tickets about the Config-Any CPAN distribution.

Report information
The Basics
Id: 43834
Status: rejected
Priority: 0/
Queue: Config-Any

People
Owner: Nobody in particular
Requestors: ddascalescu+perl [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.17
Fixed in: (no value)



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.
I'm marking this as stalled since I really have no clue how to handle this. Is the BOM truly required?
After much thought, I've decided to reject this ticket. Config::Any simply delegates config parsing to another module. You should report the inability to handle "Byte Order Marks" to the author of the "upstream" JSON parser.