Examples of beginObject()


Examples of com.orientechnologies.orient.core.serialization.serializer.OJSONWriter.beginObject()

        json.writeAttribute(4, false, "value", entry.value);
        json.endObject(3, true);
      }
      json.endCollection(2, true);

      json.beginObject(1, true, "profiler");
      json.beginCollection(2, true, "hookValues");
      for (String h : OProfiler.getInstance().getHooks()) {
        json.beginObject(3);
        writeField(json, 3, "name", h);
        writeField(json, 3, "value", OProfiler.getInstance().getHookValue(h));
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.serializer.OJSONWriter.beginObject()

      json.endCollection(2, true);

      json.beginObject(1, true, "profiler");
      json.beginCollection(2, true, "hookValues");
      for (String h : OProfiler.getInstance().getHooks()) {
        json.beginObject(3);
        writeField(json, 3, "name", h);
        writeField(json, 3, "value", OProfiler.getInstance().getHookValue(h));
        json.endObject(3);
      }
      json.endCollection(2, false);
View Full Code Here

Examples of org.apache.olingo.odata2.core.ep.util.JsonStreamWriter.beginObject()

  private InputStream wrapInJson(final List<DebugInfo> parts) throws IOException {
    CircleStreamBuffer csb = new CircleStreamBuffer();
    BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(csb.getOutputStream(), "UTF-8"));
    JsonStreamWriter jsonStreamWriter = new JsonStreamWriter(writer);
    jsonStreamWriter.beginObject()
        .name(parts.get(0).getName().toLowerCase(Locale.ROOT));
    parts.get(0).appendJson(jsonStreamWriter);
    jsonStreamWriter.separator()
        .name(parts.get(1).getName().toLowerCase(Locale.ROOT));
    parts.get(1).appendJson(jsonStreamWriter);
View Full Code Here

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

  }

  private void testActions(Issue issue, String expected) throws JSONException {
    StringWriter output = new StringWriter();
    JsonWriter jsonWriter = JsonWriter.of(output);
    jsonWriter.beginObject();
    writer.writeActions(issue, jsonWriter);
    jsonWriter.endObject();
    JSONAssert.assertEquals(output.toString(), expected, true);
  }
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.