Package org.json

Examples of org.json.JSONArray.optString()


                }

                needToCreate = false;

                for (int j = 0; j < cookieJSONArray.length(); j++) {
                    final String visitedURL = cookieJSONArray.optString(j);

                    if (request.getRequestURI().equals(visitedURL)) {
                        needToAppend = false;
                        return true;
                    }
View Full Code Here


    List<String> result = new Vector<String>();
   
    JSONArray ary = getArray(sectionName, arrayName);
    if( null != ary ){
      for(int i=0,e=ary.length(); i<e; ++i){
        String n = ary.optString(i);
        if( null != n ) {
          result.add(n);
        }
      }
    }
View Full Code Here

    fType = map.optString("type");
    fFog = map.optString("fog");
   
    JSONArray tilesets = map.optJSONArray("tilesets");
    fTilesets = new TileSet[tilesets.length()];
    for (int i = 0; i < tilesets.length(); i++) fTilesets[i] =  GruntzGame.resourceManager().tileset(tilesets.optString(i));
   
    LogicFactory f = new LogicFactory();
    fLogics = new EntityQuery<Logic>();
    if (valid) {
      JSONArray logics = map.optJSONArray("logics");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.