D
D
Dmustache Usakov2021-08-03 20:55:28
firebase
Dmustache Usakov, 2021-08-03 20:55:28

How to import files into Realtime Database correctly?

I want to upload this data to Realtime Databasse :

{
  "attractions": {
    "\u0426\u041f\u041a\u0438\u041e \u0438\u043c. \u041c. \u0413\u043e\u0440\u044c\u043a\u043e\u0433\u043e": {
      "arttr_loc": "\u0443\u043b\u0438\u0446\u0430 \u041a\u0440\u044b\u043c\u0441\u043a\u0438\u0439 \u0412\u0430\u043b, \u0434\u043e\u043c 9",
      "attr_X": 56.384396,
      "attr_Y": 61.969486
    },
    "loc": {
      "arttr_loc": "noncreated",
      "attr_X": 55.80432,
      "attr_Y": 38.97999
    },
    "\u0441\u043a\u0432\u0435\u0440 \u0443 \u043c\u0435\u0442\u0440\u043e \u041d\u043e\u0432\u043e\u043a\u0443\u0437\u043d\u0435\u0446\u043a\u0430\u044f": {
      "arttr_loc": "\u0443\u043b\u0438\u0446\u0430 \u041d\u043e\u0432\u043e\u043a\u0443\u0437\u043d\u0435\u0446\u043a\u0430\u044f",
      "attr_X": 54.13048,
      "attr_Y": 37.29791
    },
    "\u041f\u0430\u0440\u043a \u00ab\u0421\u0430\u0434\u043a\u0438\u00bb": {
      "arttr_loc": "\u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u043c\u0435\u0436\u0434\u0443 \u041b\u044e\u0431\u043b\u0438\u043d\u0441\u043a\u043e\u0439 \u0443\u043b\u0438\u0446\u0435\u0439 \u0438 11-\u0439 \u0443\u043b\u0438\u0446\u0435\u0439 \u0422\u0435\u043a\u0441\u0442\u0438\u043b\u044c\u0449\u0438\u043a\u043e\u0432",
      "attr_X": 43.295753,
      "attr_Y": -0.368567
    },
    "\u0421\u043a\u0432\u0435\u0440 \u043f\u043e \u0413\u043e\u0441\u0442\u0438\u043d\u0438\u0447\u043d\u043e\u043c\u0443 \u043f\u0440\u043e\u0435\u0437\u0434\u0443": {
      "arttr_loc": "\u0413\u043e\u0441\u0442\u0438\u043d\u0438\u0447\u043d\u0430\u044f \u0443\u043b\u0438\u0446\u0430",
      "attr_X": 55.668163,
      "attr_Y": 37.62623
    },
    "\u041a\u0430\u0448\u0438\u0440\u0441\u043a\u043e\u0435 \u0448\u043e\u0441\u0441\u0435 \u0434\u043e\u043c 6, \u043a\u043e\u0440\u043f\u0443\u0441 3 \u043f\u0430\u043c\u044f\u0442\u043d\u0438\u043a \u043f\u043e\u0433\u0438\u0431\u0448\u0438\u043c": {
      "arttr_loc": "\u041a\u0430\u0448\u0438\u0440\u0441\u043a\u043e\u0435 \u0448\u043e\u0441\u0441\u0435 \u0434\u043e\u043c 6, \u043a\u043e\u0440\u043f\u0443\u0441 3",
      "attr_X": 44.764076,
      "attr_Y": 37.86271
    },
    "\u0413\u0440\u0443\u0448\u0435\u0432\u0430\u044f \u0430\u043b\u043b\u0435\u044f": {
      "arttr_loc": "1-\u0439 \u0411\u043e\u0442\u043a\u0438\u043d\u0441\u043a\u0438\u0439 \u043f\u0440\u043e\u0435\u0437\u0434",
      "attr_X": 55.73658,
      "attr_Y": 37.5174
    },
    "\u041f\u0430\u0440\u043a \u041f\u043e\u0431\u0435\u0434\u044b \u043d\u0430 \u041f\u043e\u043a\u043b\u043e\u043d\u043d\u043e\u0439 \u0433\u043e\u0440\u0435": {
      "arttr_loc": "\u0443\u043b\u0438\u0446\u0430 \u0411\u0440\u0430\u0442\u044c\u0435\u0432 \u0424\u043e\u043d\u0447\u0435\u043d\u043a\u043e, \u0434\u043e\u043c 7",
      "attr_X": 55.70005,
      "attr_Y": 37.84673
    },
    "\u0421\u043a\u0432\u0435\u0440 \u00ab\u0410\u0440\u0431\u0430\u0442\u0435\u0446\u00bb": {
      "arttr_loc": "\u0423\u043b \u0410\u043b\u0430\u0431\u044f\u043d\u0430 \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432 \u0434\u043e\u043c\u0430 \u2116 3",
      "attr_X": 55.86968,
      "attr_Y": 37.637245
    },
    "\u0421\u043a\u0432\u0435\u0440 \u0443 \u043f\u0430\u043c\u044f\u0442\u043d\u0438\u043a\u0430 \u041f.\u0418.\u0411\u0430\u0433\u0440\u0430\u0442\u0438\u043e\u043d\u0443": {
      "arttr_loc": "\u043d\u0430\u0431\u0435\u0440\u0435\u0436\u043d\u0430\u044f \u0422\u0430\u0440\u0430\u0441\u0430 \u0428\u0435\u0432\u0447\u0435\u043d\u043a\u043e \u043c\u0435\u0436\u0434\u0443 \u0434\u043e\u043c\u0430\u043c\u0438 23 \u0438 25",
      "attr_X": 46.29354,
      "attr_Y": 44.27415
    },
    "\u041f\u0440\u043e\u043d\u0441\u043a\u0430\u044f \u0443\u043b\u0438\u0446\u0430": {
      "arttr_loc": "\u041e\u0442 \u0443\u043b\u0438\u0446\u044b \u0416\u0443\u043b\u0435\u0431\u0438\u043d\u0441\u043a\u0438\u0439 \u0411\u0443\u043b\u044c\u0432\u0430\u0440 \u0434\u043e \u041b\u0435\u0440\u043c\u043e\u043d\u0442\u043e\u0432\u0441\u043a\u043e\u0433\u043e \u041f\u0440\u043e\u0441\u043f\u0435\u043a\u0442\u0430",
      "attr_X": 44.263435,
      "attr_Y": 38.825592
    }
  }
}


When I try to upload this dataset to the database, everything works out for me, but as soon as I create the dataset myself, I cannot upload it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmustache Usakov, 2021-08-03
@Dmustache

Since my variable does not have spaces, it does not allow the dataset to be created

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question