How to get the JSon string without knowing what's in it? [duplicate]

0

I use jo.getString ("name") to get the value of a JSon file, how do I get this name without having to put the "name" inside getString?

    
asked by anonymous 16.06.2015 / 23:04

1 answer

-1

Well I guess this is not possible because jSON works with key and value ie {"name": "Alessandro"} to access the value 'Alessandro' you must access by your key or key that in the case is "name" and this in android you use getString ("name") if it is a string that you want to get.

    
17.06.2015 / 05:06