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?
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?
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.