Examples of endObject()


Examples of com.ajjpj.abase.io.AJsonSerHelper.endObject()

        for(APresentationMenuEntry menuEntry: config.presentationMenuEntries) {
            writeMenuEntry(menuEntry, json);
        }
        json.endArray();

        json.endObject();

        out.println(");");
    }

    private void writeMenuEntry(APresentationMenuEntry menuEntry, AJsonSerHelper json) throws IOException {
View Full Code Here

Examples of com.ajjpj.asysmon.util.AJsonSerHelper.endObject()

        json.writeKey("scalars");
        json.startObject();
        for(AScalarDataPoint scalar: getSysMon().getScalarMeasurements().values()) {
            writeScalar(json, scalar);
        }
        json.endObject();

        json.writeKey("columnDefs");
        json.startArray();
        for(ColDef colDef: getColDefs()) {
            writeColDef(json, colDef);
View Full Code Here

Examples of com.alibaba.fastjson.JSONReader.endObject()

        reader.startArray();

        int count = 0;
        while (reader.hasNext()) {
            reader.startObject();
            reader.endObject();
            count++;
        }
        Assert.assertEquals(10, count);

        reader.endArray();
View Full Code Here

Examples of com.alibaba.fastjson.JSONWriter.endObject()

        writer.writeObject("2");
       
        writer.writeObject("c");
        writer.writeObject("3");
       
        writer.endObject();
        writer.close();

        Assert.assertEquals("{'a':'1','b':'2','c':'3'}", out.toString());
    }
}
View Full Code Here

Examples of com.amazonaws.util.json.JSONWriter.endObject()

                    Double consumedCapacityUnits = responses.get(tableKey).getConsumedCapacityUnits();
          if (consumedCapacityUnits != null) {
            jsonWriter.key("ConsumedCapacityUnits").value(consumedCapacityUnits);
          }
                    //End table
          jsonWriter.endObject();
        }
      }
            //End response
            jsonWriter.endObject();
View Full Code Here

Examples of com.github.nmorel.gwtjackson.client.stream.JsonReader.endObject()

                if ( !name.equals( rootName ) ) {
                    throw ctx.traceError( "Unwrap root value is enabled but the name '" + name + "' don't match the expected rootName " +
                            "'" + rootName + "'", reader );
                }
                T result = getDeserializer().deserialize( reader, ctx );
                reader.endObject();
                return result;

            } else {

                return getDeserializer().deserialize( reader, ctx );
View Full Code Here

Examples of com.github.nmorel.gwtjackson.client.stream.JsonWriter.endObject()

        try {
            if ( ctx.isWrapRootValue() ) {
                writer.beginObject();
                writer.name( rootName );
                getSerializer().serialize( writer, value, ctx );
                writer.endObject();
            } else {
                getSerializer().serialize( writer, value, ctx );
            }
            return writer.getOutput();
        } catch ( JsonSerializationException e ) {
View Full Code Here

Examples of com.google.appengine.repackaged.org.json.JSONWriter.endObject()

      if(activity != null) {
        writer.value(activity.toJSON());
      } else {
        writer.value(null);
      }
      writer.endObject();
    } catch(JSONException e) {
      resp.getWriter().println("{\"activity\":null}");
    }
  }
}
View Full Code Here

Examples of com.google.gson.stream.JsonReader.endObject()

            logger.debug("Skipping value for " + name); // TODO: write these out?
            reader.skipValue();
          }
          break;
        case END_OBJECT:
          reader.endObject();
          break;
        case END_DOCUMENT:
          break;
      }
    }   
View Full Code Here

Examples of com.google.gson.stream.JsonWriter.endObject()

      writer.value(prin.getName());

      // delegate to the service to do the actual export
      dataService_1_1.exportData(writer);

      writer.endObject(); // end root
      writer.close();

    } catch (IOException e) {
      logger.error("Unable to export data", e);
    }
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.