First, be sure you don't have an UTF-8 BOM into your file. A one-liner command available herehere can spot and suppress it.
Another option could be switching to another js lib conversion such as JSONXML.
(If you want further support, please upload file and code online)