Examples of toJSONObject()


Examples of org.apache.geronimo.console.util.StringTree.toJSONObject()

        }
        for (int i = 0; i < list.size(); i++) {
            StringTree node = (StringTree) list.get(i);
            if (i != 0)
                stb.append(",");
            stb.append(node.toJSONObject("" + i, htLinks, true));
        }
        stb.append("]");
        list = null;
        return stb.toString();
    }
View Full Code Here

Examples of org.apache.geronimo.console.util.StringTree.toJSONObject()

        stb.append("[");
        for (int i = 0; i < list.size(); i++) {
            StringTree node = (StringTree) list.get(i);
            if (i != 0)
                stb.append(",");
            stb.append(node.toJSONObject("" + i));
        }
        stb.append("]");
        return stb.toString();
    }
View Full Code Here

Examples of org.apache.geronimo.console.util.StringTree.toJSONObject()

        stb.append("[");
        for (int i = 0; i < list.size(); i++) {
            StringTree node = (StringTree) list.get(i);
            if (i != 0)
                stb.append(",");
            stb.append(node.toJSONObject("" + i));
        }
        stb.append("]");
        return stb.toString();
    }
View Full Code Here

Examples of org.apache.hadoop.chukwa.hicc.bean.Series.toJSONObject()

          HttpSession session = request.getSession();
          String[] rkeys = (session.getAttribute(skey).toString()).split(",");
          JSONArray seriesList = new JSONArray();
          for(String rowKey : rkeys) {
            Series output = ChukwaHBaseStore.getSeries(table, rowKey, family, qualifier, startTime, endTime, true);
            seriesList.add(output.toJSONObject());
          }
          buffer = seriesList.toString();
      } else {
        throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST)
            .entity("No session attribute key defined.").build());
View Full Code Here

Examples of org.apache.hadoop.chukwa.hicc.bean.Series.toJSONObject()

          for(String rowKey : rkeys) {
          if (rowKey == null || rowKey.equals("")) {
            continue;
          }
            Series output = ChukwaHBaseStore.getSeries(table, rowKey, family, qualifier, startTime, endTime, true);
            seriesList.add(output.toJSONObject());
          }
          buffer = seriesList.toString();
      } else {
        throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST)
            .entity("No session attribute key defined.").build());
View Full Code Here

Examples of org.apache.sling.commons.json.JSONArray.toJSONObject()

     * @throws JSONException
     */
    public static JSONObject rowToJSONObject(JSONArray names, JSONTokener x)
            throws JSONException {
        JSONArray ja = rowToJSONArray(x);
        return ja != null ? ja.toJSONObject(names) null;
    }

    /**
     * Produce a JSONArray of JSONObjects from a comma delimited text string,
     * using the first row as a source of names.
View Full Code Here

Examples of org.b3log.latke.plugin.AbstractPlugin.toJSONObject()

                }
            }

            // Adds these plugins into datastore
            for (final AbstractPlugin plugin : plugins) {
                final JSONObject pluginDesc = plugin.toJSONObject();

                pluginRepository.add(pluginDesc);

                LOGGER.log(Level.TRACE, "Refreshed plugin[{0}]", pluginDesc);
            }
View Full Code Here

Examples of org.b3log.latke.plugin.AbstractPlugin.toJSONObject()

                }
            }

            // Adds these plugins into datastore
            for (final AbstractPlugin plugin : plugins) {
                final JSONObject pluginDesc = plugin.toJSONObject();
                PLUGIN_REPOS.add(pluginDesc);

                LOGGER.log(Level.FINEST, "Refreshed plugin[{0}]", pluginDesc);
            }
View Full Code Here

Examples of org.b3log.latke.plugin.AbstractPlugin.toJSONObject()

            }
        }

        // Adds these plugins into datastore
        for (final AbstractPlugin plugin : plugins) {
            final JSONObject pluginDesc = plugin.toJSONObject();
            PLUGIN_REPOS.addAsync(pluginDesc);
           
            LOGGER.log(Level.FINEST, "Refreshed plugin[{0}]", pluginDesc);
        }
       
View Full Code Here

Examples of org.b3log.solo.sync.Post.toJSONObject()

                                   "Retrieve article[postId={0}] from external blogging system[{1}] is null",
                                   new String[]{externalArticleId, externalSys});
                        continue;
                    }

                    article = externalPost.toJSONObject();
                    final JSONObject externalArticleSoloArticleRelation =
                            new JSONObject();
                    externalArticleSoloArticleRelation.put(
                            BLOG_SYNC_EXTERNAL_ARTICLE_IMPORTED, false);
                    externalArticleSoloArticleRelation.put(
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.