This looks like a compounded error.

First, Json should never have a BOM encoded within it. Second, it seems 
like the Go Json decoder doesn't account for the BOM if it is mistakenly 
encoded. Both are mentioned in the Json RFC: 
https://tools.ietf.org/html/rfc7159#section-8.1

On Friday, 23 September 2016 12:37:56 UTC+1, Mark Richman wrote:
>
> I have a JSON file which begins with the UTF-8 byte-order marker (BOM) 
> 0xEF 0xBB 0xBF.
>
> This causes Decode() to fail with SyntaxError:
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to