Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to get key value from json object in java

JSONObject agac = jsonObject.getJSONObject("agac");
String agac_name  = agac.getString("agac-name");
int agac_sayisi  = agac.getInt("agac-count");
double agac_carpani = agac.getDouble("agac-carpani");
double agac_fiyat = agac.getDouble("agac-fiyati");
int agac_level  = agac.getInt("agac-level");
 
PREVIOUS NEXT
Tagged: #key #json #object #java
ADD COMMENT
Topic
Name
5+1 =