src/main/java/org/semgus/java/event/EventParser.java
public static List<SpecEvent> parse(String json) throws ParseException, DeserializationException {
        Object eventsDto = JSON_PARSER.parse(json);
        if (!(eventsDto instanceof JSONArray)) {
            throw new DeserializationException("Event array must be a JSON array!");
        }
        return parse((JSONArray)eventsDto);
    }
/**
     * Parses a string as a JSON array of parser events.
     *
     * @param json The JSON string.
     * @return The deserialized parser events.
     * @throws ParseException           If the string is not well-formed JSON.
     * @throws DeserializationException If the JSON is not a valid representation of an array of parser events.
     */
Parses a string as a JSON array of parser events.
@param json The JSON string.
@return The deserialized parser events.
@throws ParseException           If the string is not well-formed JSON.
@throws DeserializationException If the JSON is not a valid representation of an array of parser events.
Parses a string as a JSON array of parser events . @param json The JSON string . @return The deserialized parser events . @throws ParseException If the string is not well - formed JSON . @throws DeserializationException If the JSON is not a valid representation of an array of parser events .
public static List<SpecEvent> parse(String json) throws ParseException, DeserializationException {
        Object eventsDto = JSON_PARSER.parse(json);
        if (!(eventsDto instanceof JSONArray)) {
            throw new DeserializationException("Event array must be a JSON array!");
        }
        return parse((JSONArray)eventsDto);
    }
public static List < SpecEvent > parse ( String json ) throws ParseException , DeserializationException { Object eventsDto = JSON_PARSER . parse ( json ) ; if ( ! ( eventsDto instanceof JSONArray ) ) { throw new DeserializationException ( "Event array must be a JSON array!" ) ; } return parse ( ( JSONArray ) eventsDto ) ; }
Parses a string as a JSON array of parser events.
Parses a string as a JSON array of parser events .