BOM in metadata.json

Posted on
  • Hi,
    I had a UTF-8 BOM in my metadata.json and got really weird messages about "invalid JSON". Just wanted to say, in case others might have the same issue one day.

  • Ok, thanks. Yes, I think JSON is a bit strange about UTF8 - it might need the characters to be escaped.

    What do you mean by 'BOM' though? I know it as 'Bill of Materials'

  • Byte Order Mask. A few bytes to tell the encoding of text files.

  • Ahh, right - just looked it up. Yes, Espruino (and the app loader) doesn't support a byte order mask in JSON.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

BOM in metadata.json

Posted by Avatar for gfric @gfric

Actions