Android Question [SOLVED] Getting data from json string ...

rbghongade

Well-Known Member
Licensed User
Longtime User
Dear friends,
I have been able to get the json string from firebase realtimedatabase which is as follows:
B4X:
{"-LUcr0GnxrvSURfSq9HJ":"25/12/2018,01:45:30,20.5,23.6","-LUcr0g4CHuwrnIQqV4r":"25/12/2018,01:45:30,20.5,23.6","-LUcr13l55bS8A5Uch-_":"25/12/2018,01:45:30,20.5,23.6","-LUcr1TBh3Dtv4cGDkEy":"25/12/2018,01:45:30,20.5,23.6","-LUcr1r86gnf5gfrSFCx":"25/12/2018,01:45:30,20.5,23.6","-LUcr2JGvS1PoNlY0O_9":"25/12/2018,01:45:30,20.5,23.6","-LUcr2i2Iuh6qab5BT1s":"25/12/2018,01:45:30,20.5,23.6","-LUcr36svY0zzK39nP_s":"25/12/2018,01:45:30,20.5,23.6","-LUcr3Ucst2oYYBc8lNs":"25/12/2018,01:45:30,20.5,23.6","-LUcr3t1wGUOJzFjvsJ3":"25/12/2018,01:45:30,20.5,23.6","-LUcr4IFPlLNsFd4aUwT":"25/12/2018,01:45:30,20.5,23.6","-LUcr4ebXMbZoiVlWjSH":"25/12/2018,01:45:30,20.5,23.6","-LUcr532YM92EH6aUHVb":"25/12/2018,01:45:30,20.5,23.6"}

Now I want to extract only the strings "25/12/2018,01:45:30,20.5,23.6"
Please note that the string length will be different every time we retrieve the data ( will be increasing with logging the data).
Database screenshot attached.
FIREBASE.png
 

rbghongade

Well-Known Member
Licensed User
Longtime User
It is just an example with the values same but will be different in deployment. I am totally new to this sort of database . The values in bold which I presume are keys are generated by firebase database whenever I append new data.
 
Upvote 0

rbghongade

Well-Known Member
Licensed User
Longtime User
Fantastic,
The code works great. Erel, you solved my biggest issue. Thanks.
One question though: Is there any limit on the size of data received with httpOkUtils2 method?
 
Upvote 0
Top