I have this JSON object:
{
\"1\":{
\"id_module\":\"f83d6101cc\",
\"adresse_mac\":\"00:6A:8E:16:C6:26\",
\"mot_de_passe\":\"mp0001\",\"name\":\
You should try this:
String str = "your json string";
JSONObject json = new JSONObject(str);
String module = json.getJSONObject("1").getString("id_module");
String address = json.getJSONObject("1").getString("adresse_mac");
String module2 = json.getJSONObject("2").getString("id_module"); //from 2nd object