Unable to send data containing $ in key to Firebase

I am trying to post some data to Firebase (the relative part of the url is / messages.json). The following request content:

{"gsx$enddate":"sometime"} 

Gives the following error:

Invalid data failed to parse JSON object, array or value. You may be using invalid characters in your key names.

This is really JSON. What am I doing wrong?

+3
source share
1 answer

This is supposed to be valid JSON, but it looks like this is a limitation for FireBase

From the FireBase documentation :

Character Set Limitations

Please note that the URLs used to create Firebase links can contain any Unicode characters except:

  • . (point)
  • $ (dollar sign)
  • [ (left square bracket)
  • ] (right square bracket)
  • # (hash or pound sign)
  • / (slash)
+14
source

Source: https://habr.com/ru/post/1261264/


All Articles