This commit is contained in:
parent
e822a4b35c
commit
91cadbb301
20 changed files with 342 additions and 130 deletions
|
|
@ -99,11 +99,11 @@ public class DataNode implements Iterable<DataNode>{
|
|||
* @return an JSONNode that contains the next level of the List or Map
|
||||
*/
|
||||
public DataNode get(int index){
|
||||
if(map != null)
|
||||
return map.get(""+index);
|
||||
else if(list != null)
|
||||
return list.get(index);
|
||||
return null;
|
||||
if(map != null)
|
||||
return map.get(""+index);
|
||||
else if(list != null)
|
||||
return list.get(index);
|
||||
return null;
|
||||
}
|
||||
/**
|
||||
* @param index is the key in the Map
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue