in reply to Re: Rogue character(s) at start of JSON file (BOM; dumping references)
in thread Rogue character(s) at start of JSON file

A BOM at the file's start (and only there) is often added automatically by many programs

As used by UK Government departments, it seems!

  • Comment on Re^2: Rogue character(s) at start of JSON file (BOM; dumping references)

Replies are listed 'Best First'.
Re^3: Rogue character(s) at start of JSON file (BOM; dumping references)
by LanX (Saint) on Jan 17, 2023 at 22:03 UTC
    Misguidedly I'd say

    JSON is always supposed to be utf-8 as far as I know.

    Cheers Rolf
    (addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
    Wikisyntax for the Monastery

      Misguidedly I'd say

      Yes indeed...

      Having seen something of their database structure from where the JSON is derived, it looks like their problems are more deep rooted than just a rouge BOM character. But hey, that's what I've got, and I have to work with it. Fortunately, I only need a small slice of the data and I am not going to be running any queries against it.