Package org.json

Examples of org.json.JSONWriter.endArray()


                action(jw, enable, "removeNode", "Remove Node", "update");
                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


            // add raw status
            jw.key( "s" );
            jw.array();
            for ( int i = 0; i < 5; i++ ) jw.value(status[i]);
            jw.endArray();

            jw.key( "data" );

            jw.array();
View Full Code Here

            for ( int i = 0; i < bundles.length; i++ )
            {
                bundleInfo( jw, bundles[i], fullDetails || bundle != null, pluginRoot, servicesRoot, locale );
            }

            jw.endArray();

            jw.endObject();

        }
        catch ( JSONException je )
View Full Code Here

            jw.key("instances");
            jw.array();
            for (Instance i : instances) {
                instanceInfo(jw, i);
            }
            jw.endArray();
            jw.endObject();
        } catch (JSONException ex) {
            Logger.getLogger(AdminPlugin.class.getName()).log(Level.SEVERE, null, ex);
        } catch (Exception ex) {
            Logger.getLogger(AdminPlugin.class.getName()).log(Level.SEVERE, null, ex);
View Full Code Here

                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

                action(jw, enable, "refreshRepository", "Refresh", "refresh");
                action(jw, enable, "removeRepository", "Remove", "delete");
                jw.endArray();
                jw.endObject();
            }
            jw.endArray();

            jw.key("features");
            jw.array();
            for (ExtendedFeature f : features) {
                featureInfo(jw, f);
View Full Code Here

            jw.key("features");
            jw.array();
            for (ExtendedFeature f : features) {
                featureInfo(jw, f);
            }
            jw.endArray();

            jw.endObject();

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

                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

                action( jw, enable, "refreshRepository", "Refresh", "refresh" );
                action( jw, enable, "removeRepository", "Remove", "delete" );
                jw.endArray();
                jw.endObject();
            }
            jw.endArray();

            jw.key( "features" );
            jw.array();
            for ( ExtendedFeature f : features )
            {
View Full Code Here

            jw.array();
            for ( ExtendedFeature f : features )
            {
                featureInfo( jw, f );
            }
            jw.endArray();

            jw.endObject();

        }
        catch ( JSONException je )
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.