2016년 11월 16일 수요일

How to write a plain text to a firebase?


Hey!

It seemed to be a pretty easy task, huh. Surely I know, that Firebase is experimental component.
But there is a conceptual problem when you send a text value to a tag. Because ai2 text value is being sent within quotation marks - ""
So when you send, for instance hello it transforms to "hello" and then firebase escapes quotes in this way "\"hello\""

Is there a way to send it without quotes? Thanks in advance.


does it matter how this is stored in Firebase internally?
the question is, do you get the same value back after doing a GetValue?
Taifun

-- 
If i request text data it comes ok. That's true.
Actually it is not a big deal about how firebase stores it. But, the main point that i cant create lists in firebase, which are very needed.

So when I run this:


I get this result:
Instead of having ["stu1", "stu2"] which is automatically converted to a JSON array, but the "["\stu1",\"stu2\"']" is not.

-- 
works fine for me
Taifun



-- 
Oh God! You are right. Even it is not showing as a list in firebase. It returns a list in a app inventor app.
Works like a charm. Thanks a lot, Taifun! Where is the button to add points to your karma :)

--

댓글 없음:

댓글 쓰기