I would like to retrieve data stored in firebase database but in proper Json format, the problem is when using String.valueOf(dataSnapshot.getValue()) it is not the correct json format.
For example, if the the data
{
"properties" : {
"last_update" : "15-02-2017 02:48:00 pm",
"last_update_code" : "1258884"
}
}
the returned value becomes like that
properties = {last_update = 15-02-2017 02:48:00 pm,last_update_code = 1258884}
without the quotes or (:) .
so it there a way to get the data as string in the first format?