Firebase - Invalid JSON data or key values. Key values can’t contain $ # [ ] / or

后端 未结 9 2239
陌清茗
陌清茗 2020-12-31 03:34

I\'m trying to import my JSON file into my Firebase but it keeps giving me this error. I don\'t know why this JSON file isn\'t allowed to be imported into since JSONLint say

9条回答
  •  旧巷少年郎
    2020-12-31 04:08

    I just spent some time on this and found the issue for me (and likely for many others) when getting this error message. It looks like firebase can only import files with UTF-8 encoding (no BOM)

    I found it strange, as I couldn't re-import the content I had just exported.

    I tried all UTF versions 8, 16 with LE and BE with and without BOM, only UTF-8 works

    I wish firebase did not have this utterly misleading error message

提交回复
热议问题