Package org.json

Examples of org.json.JSONObject.optJSONObject()


        JSONObject blogSyncCnBlogs = null;
        try {
            result = eventData.getJSONObject(Keys.RESULTS);
            final JSONObject status = result.getJSONObject(Keys.STATUS);

            events = status.optJSONObject(Keys.EVENTS);
            if (null == events) {
                events = new JSONObject();
                status.put(Keys.EVENTS, events);
            }
View Full Code Here


        JSONObject blogSyncBlogJava = null;
        try {
            result = eventData.getJSONObject(Keys.RESULTS);
            final JSONObject status = result.getJSONObject(Keys.STATUS);

            events = status.optJSONObject(Keys.EVENTS);
            if (null == events) {
                events = new JSONObject();
                status.put(Keys.EVENTS, events);
            }
View Full Code Here

        JSONObject blogSyncBlogJava = null;
        try {
            result = eventData.getJSONObject(Keys.RESULTS);
            final JSONObject status = result.getJSONObject(Keys.STATUS);

            events = status.optJSONObject(Keys.EVENTS);
            if (null == events) {
                events = new JSONObject();
                status.put(Keys.EVENTS, events);
            }
View Full Code Here

        JSONObject blogSyncBlogJava = null;
        try {
            result = eventData.getJSONObject(Keys.RESULTS);
            final JSONObject status = result.getJSONObject(Keys.STATUS);

            events = status.optJSONObject(Keys.EVENTS);
            if (null == events) {
                events = new JSONObject();
                status.put(Keys.EVENTS, events);
            }
View Full Code Here

        JSONObject blogSyncCnBlogs = null;
        try {
            result = eventData.getJSONObject(Keys.RESULTS);
            final JSONObject status = result.getJSONObject(Keys.STATUS);

            events = status.optJSONObject(Keys.EVENTS);
            if (null == events) {
                events = new JSONObject();
                status.put(Keys.EVENTS, events);
            }
View Full Code Here

            JSONObject props;
            Collection<String> keys;
            if (!r.isStreamed()) {
                JSONObject json = new JSONObject(r.getBodyAsString());
                JSONArray jsonKeys = json.optJSONArray(Constants.FL_KEYS);
                props = json.optJSONObject(Constants.FL_SCHEMA);
                keys = ClientUtils.jsonArrayAsList(jsonKeys);
            } else {
                InputStream stream = r.getStream();
                JSONTokener tokens = new JSONTokener(new InputStreamReader(stream));
View Full Code Here

            JSONObject props;
            Collection<String> keys;
            if (!r.isStreamed()) {
                JSONObject json = new JSONObject(r.getBodyAsString());
                JSONArray jsonKeys = json.optJSONArray(Constants.FL_KEYS);
                props = json.optJSONObject(Constants.FL_SCHEMA);
                keys = ClientUtils.jsonArrayAsList(jsonKeys);
            } else {
                InputStream stream = r.getStream();
                JSONTokener tokens = new JSONTokener(new InputStreamReader(stream));
View Full Code Here

    JSONObject sheetContentPars = null;
    JSONArray jsonVisibleSelectFields  = null;
    JSONObject sheetContent = sheetJ.optJSONObject(CONTENT);
    if(sheetContent!=null){
      sheetContentPars = sheetContent.optJSONObject(CONTENT_PARS);
    }
    //get the visible columns
    if(sheetContentPars!=null){
      jsonVisibleSelectFields  = sheetContentPars.optJSONArray(QbeEngineStaticVariables.OPTIONAL_VISIBLE_COLUMNS);
    }
View Full Code Here

  private JSONObject dynamicFilters = null;
 
  public FormViewerState(JSONObject state) {
    JSONObject staticClosedFilters = state.optJSONObject("staticClosedFilters");
    if (staticClosedFilters != null) {
      xorFilters = staticClosedFilters.optJSONObject("xorFilters");
      onOffFilters = staticClosedFilters.optJSONObject("onOffFilters");
    }
    staticOpenFilters = state.optJSONObject("staticOpenFilters");
    dynamicFilters = state.optJSONObject("dynamicFilters");
  }
View Full Code Here

 
  public FormViewerState(JSONObject state) {
    JSONObject staticClosedFilters = state.optJSONObject("staticClosedFilters");
    if (staticClosedFilters != null) {
      xorFilters = staticClosedFilters.optJSONObject("xorFilters");
      onOffFilters = staticClosedFilters.optJSONObject("onOffFilters");
    }
    staticOpenFilters = state.optJSONObject("staticOpenFilters");
    dynamicFilters = state.optJSONObject("dynamicFilters");
  }
 
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.