Example usage for com.fasterxml.jackson.core JsonGenerator writeEndObject

List of usage examples for com.fasterxml.jackson.core JsonGenerator writeEndObject

Introduction

In this page you can find the example usage for com.fasterxml.jackson.core JsonGenerator writeEndObject.

Prototype

public abstract void writeEndObject() throws IOException, JsonGenerationException;

Source Link

Document

Method for writing closing marker of a JSON Object value (character '}'; plus possible white space decoration if pretty-printing is enabled).

Usage

From source file:com.google.openrtb.json.OpenRtbNativeJsonWriter.java

public final void writeRespLink(NativeResponse.Link link, JsonGenerator gen) throws IOException {
    gen.writeStartObject();/* www  .  ja  v a 2s  .c o  m*/
    writeRespLinkFields(link, gen);
    writeExtensions(link, gen);
    gen.writeEndObject();
}

From source file:com.google.openrtb.json.OpenRtbNativeJsonWriter.java

public final void writeReqAsset(NativeRequest.Asset asset, JsonGenerator gen) throws IOException {
    gen.writeStartObject();//from   w  w  w.  java2 s . c o m
    writeReqAssetFields(asset, gen);
    writeExtensions(asset, gen);
    gen.writeEndObject();
}

From source file:com.google.openrtb.json.OpenRtbNativeJsonWriter.java

public final void writeReqTitle(NativeRequest.Asset.Title title, JsonGenerator gen) throws IOException {
    gen.writeStartObject();/*from  ww w .  j av  a  2  s  .com*/
    writeReqTitleFields(title, gen);
    writeExtensions(title, gen);
    gen.writeEndObject();
}

From source file:com.google.openrtb.json.OpenRtbNativeJsonWriter.java

public final void writeReqImage(NativeRequest.Asset.Image image, JsonGenerator gen) throws IOException {
    gen.writeStartObject();/*w ww .  j av a  2 s . com*/
    writeReqImageFields(image, gen);
    writeExtensions(image, gen);
    gen.writeEndObject();
}

From source file:com.google.openrtb.json.OpenRtbNativeJsonWriter.java

public final void writeRespAsset(NativeResponse.Asset asset, JsonGenerator gen) throws IOException {
    gen.writeStartObject();/*w  w  w  .j a v a 2  s . c  o m*/
    writeRespAssetFields(asset, gen);
    writeExtensions(asset, gen);
    gen.writeEndObject();
}

From source file:com.google.openrtb.json.OpenRtbNativeJsonWriter.java

public final void writeRespTitle(NativeResponse.Asset.Title title, JsonGenerator gen) throws IOException {
    gen.writeStartObject();/*from   w w w .ja va 2s .  c  o  m*/
    writeRespTitleFields(title, gen);
    writeExtensions(title, gen);
    gen.writeEndObject();
}

From source file:com.google.openrtb.json.OpenRtbNativeJsonWriter.java

public final void writeRespImage(NativeResponse.Asset.Image image, JsonGenerator gen) throws IOException {
    gen.writeStartObject();//from ww  w. ja  va 2 s  . c o m
    writeRespImageFields(image, gen);
    writeExtensions(image, gen);
    gen.writeEndObject();
}

From source file:com.google.openrtb.json.OpenRtbNativeJsonWriter.java

public final void writeRespVideo(NativeResponse.Asset.Video video, JsonGenerator gen) throws IOException {
    gen.writeStartObject();//from w w  w.  j  ava2s. c o  m
    writeRespVideoFields(video, gen);
    writeExtensions(video, gen);
    gen.writeEndObject();
}

From source file:io.alicorn.data.models.CoordinateSerializer.java

@Override
public void serialize(GeospatialCoordinate geospatialCoordinate, JsonGenerator jsonGenerator,
        SerializerProvider serializerProvider) throws IOException, JsonProcessingException {
    jsonGenerator.writeStartObject();/*from   www  . ja  v  a  2  s.  c om*/
    jsonGenerator.writeStringField("type", "Point");
    jsonGenerator.writeFieldName("coordinates");
    jsonGenerator.writeStartArray();
    jsonGenerator.writeNumber(geospatialCoordinate.getLongitude());
    jsonGenerator.writeNumber(geospatialCoordinate.getLongitude());
    jsonGenerator.writeEndArray();
    jsonGenerator.writeEndObject();
}

From source file:com.proofpoint.event.client.EventFieldMetadata.java

private void writeMultimap(JsonGenerator jsonGenerator, Multimap<?, ?> value, Deque<Object> objectStack)
        throws IOException {
    jsonGenerator.writeStartObject();/* w w w.j  a v  a  2  s .co m*/
    for (Map.Entry<?, ? extends Collection<?>> entry : value.asMap().entrySet()) {
        jsonGenerator.writeFieldName((String) entry.getKey());
        writeArray(jsonGenerator, entry.getValue(), objectStack);
    }
    jsonGenerator.writeEndObject();
}