Paul Webster wrote: 
> 
> They are now putting a BOM (byte order mark) at the start of their JSON
> data - before the opening {
> The result was that the json decode failed.
> 
> I have not yet researched if this is a valid thing for them to do ...
> but it was easy enough to strip it from the front before attempting the
> decode.

As per section 8.1 of RFC 7159, BOM is illegal JSON:

https://datatracker.ietf.org/doc/html/rfc7159#section-8.1

Probably well meant of the Swiss programmer but misguided.


------------------------------------------------------------------------
philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920
View this thread: http://forums.slimdevices.com/showthread.php?t=115201

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to