Search in sources :

Example 6 with JsonLocation

use of com.fasterxml.jackson.core.JsonLocation in project dropbox-sdk-java by dropbox.

the class JsonReader method expectObjectStart.

// ------------------------------------------------------------------
// Delimiter checking helpers.
public static JsonLocation expectObjectStart(JsonParser parser) throws IOException, JsonReadException {
    if (parser.getCurrentToken() != JsonToken.START_OBJECT) {
        throw new JsonReadException("expecting the start of an object (\"{\")", parser.getTokenLocation());
    }
    JsonLocation loc = parser.getTokenLocation();
    nextToken(parser);
    return loc;
}
Also used : JsonLocation(com.fasterxml.jackson.core.JsonLocation)

Aggregations

JsonLocation (com.fasterxml.jackson.core.JsonLocation)6 JsonProcessingException (com.fasterxml.jackson.core.JsonProcessingException)1 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 ObjectReader (com.fasterxml.jackson.databind.ObjectReader)1 IOException (java.io.IOException)1 ArrayList (java.util.ArrayList)1 Date (java.util.Date)1 Color (org.eclipse.swt.graphics.Color)1 Point (org.eclipse.swt.graphics.Point)1 JSONLayoutPage (org.knime.js.core.layout.bs.JSONLayoutPage)1 JSONLayoutRow (org.knime.js.core.layout.bs.JSONLayoutRow)1