user6628772
user6628772

Reputation:

error in uploading json file on firebase and firebase is not recognizing it

In my project i am uploading json file to firebase which is i want to upload to firebase and my code of importtofire.json is here :-

{
  "SCHOOL NAME" : "Amrit Yatayat school",
  "ADDRESS" : "7'/'2 Chhoti Gawlati Sardar Patel Marg Indore ,Indore '-' 452001",
  "PHONE NO." : "(0731) 2464534"
}

In uploading these data i am getting these error :-

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

Please help me

Upvotes: 1

Views: 2506

Answers (2)

Ted
Ted

Reputation: 23756

No changes to your code just save the file as UTF-8 encoding

in SublimeText > File > Save with Encoding > UTF-8

enter image description here

Upvotes: 1

hemu
hemu

Reputation: 36

In your code just remove . which you had used and then your error will solve it is here "PHONE NO." to "PHONE NO"

Upvotes: 2

Related Questions