How to Parse Data from Payload Firestore #175
-
I managed to get response data from firestore with string data type (as described in the readme file), but I am still confused about how to parse or deserialize the response payload into json objects for easy use. please give advice on how to parse the payload response obtained. besides that I also get some other problems related to the payload response obtained from the server. here I use the firestore runQuery method. some of the problems / obstacles that I encountered when receiving the response were.
those are some of the problems / obstacles that I encountered when using this library to query the firestore. for the suggestions and solutions provided, I thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 12 replies
-
You can't use You should use |
Beta Was this translation helpful? Give feedback.
-
After checking, I agree that the issue still exists, and I will investigate further to fix this. |
Beta Was this translation helpful? Give feedback.
-
This issue introduced by this PR related to chunk decoding in v1.4.7. In v1.4.6, this issue never existed. |
Beta Was this translation helpful? Give feedback.
-
Now the issue was fixed in v1.4.8, please update. Now the response payload is a valid JSON which you can parse it with any JSON library. |
Beta Was this translation helpful? Give feedback.
-
This depends on Firestore REST APIs. The Request body for the runQuery method was set by You also can print the For the Response body, the information is here. |
Beta Was this translation helpful? Give feedback.
-
The chunked decoding issue was fixed in v1.4.9. |
Beta Was this translation helpful? Give feedback.
Now the issue was fixed in v1.4.8, please update.
Now the response payload is a valid JSON which you can parse it with any JSON library.