Parse json data with uncertain key value

 JSONObject jsonObject = new JSONObject ( jsonData ); //Get all the key values ​​in this json through the iterator Iterator keys = jsonObject . keys (); //Then take out all the key values ​​through a loop while ( keys . hasNext () ){ String key = String . valueOf ( keys . next ()); //Finally, the following json can be parsed through the key value just obtained }  
        
        
        
         
             
            
        

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325549462&siteId=291194637