Examples of endArray()


Examples of org.json.JSONWriter.endArray()

                boolean enable = true;
                action(jw, enable, "deleteGroup", "Delete Group", "delete");
                jw.endArray();
                jw.endObject();
            }
            jw.endArray();
            jw.endObject();
        } catch (JSONException je) {
            throw new IOException(je.toString());
        }
    }
View Full Code Here

Examples of org.json.JSONWriter.endArray()

                jw.key("urls");
                jw.array();
                for (String url : servlet.getUrls()) {
                    jw.value(url);
                }
                jw.endArray();
                jw.endObject();
            }
            jw.endArray();

            jw.key("web");
View Full Code Here

Examples of org.json.JSONWriter.endArray()

                    jw.value(url);
                }
                jw.endArray();
                jw.endObject();
            }
            jw.endArray();

            jw.key("web");
            jw.array();
            for (WebDetail webDetail : web) {
                jw.object();
View Full Code Here

Examples of org.json.JSONWriter.endArray()

                jw.value(webDetail.getContextPath());
                jw.key("state");
                jw.value(webDetail.getWebState());
                jw.endObject();
            }
            jw.endArray();

            jw.endObject();
        } catch (JSONException je) {
            throw new IOException(je.toString());
        }
View Full Code Here

Examples of org.json.JSONWriter.endArray()

                if (uri.startsWith("bundle")) {
                    enable = false;
                }
                action(jw, enable, "refreshRepository", "Refresh", "refresh");
                action(jw, enable, "removeRepository", "Remove", "delete");
                jw.endArray();
                jw.endObject();
            }
            jw.endArray();

            jw.key("features");
View Full Code Here

Examples of org.json_voltpatches.JSONStringer.endArray()

            stringer.key(Members.EXECUTE_LIST.name()).array();
            for (AbstractPlanNode node : m_list) {
                stringer.value(node.getPlanNodeId().intValue());
            }
            stringer.endArray(); //end execution list

            stringer.endObject(); //end PlanNodeList
        } catch (JSONException e) {
            // HACK ugly ugly to make the JSON handling
            // in QueryPlanner generate a JSONException for a plan we know
View Full Code Here

Examples of org.jvnet.sorcerer.util.JsonWriter.endArray()

                jw.property("kind",getKindString(t.getKind()));
                jw.property("script",t.getQualifiedName().toString().replace('.','/')+".js");
                jw.property("access",getAccessLevel(t));
                jw.endObject();
            }
            jw.endArray();
            w.println(");");
        } finally {
            w.close();
        }
    }
View Full Code Here

Examples of org.kohsuke.stapler.export.DataWriter.endArray()

        w.value(q);

        w.startArray();
        for (SuggestedItem item : getSuggestions(req, q))
            w.value(item.getPath());
        w.endArray();
        w.endArray();
    }

    /**
     * Used by search box auto-completion. Returns JSON array.
View Full Code Here

Examples of org.sonar.api.utils.text.JsonWriter.endArray()

        .prop("language", profile.getLanguage())
        .prop("name", profile.getName())
        .prop("rulesUpdatedAt", UtcDateUtils.formatDateTime(profile.getRulesUpdatedAt()))
        .endObject();
    }
    writer.endArray();
    writer.close();
    return json.toString();
  }

  public UsedQProfiles add(UsedQProfiles other) {
View Full Code Here

Examples of org.wicketstuff.select2.json.JsonBuilder.endArray()

        for (T choice : choices) {
          selection.object();
          getProvider().toJson(choice, selection);
          selection.endObject();
        }
        selection.endArray();
      } catch (JSONException e) {
        throw new RuntimeException("Error converting model object to Json", e);
      }

      response.render(OnDomReadyHeaderItem.forScript(JQuery.execute("$('#%s').select2('data', %s);", getJquerySafeMarkupId(),
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.