All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.directwebremoting.json.parse.JsonParser Maven / Gradle / Ivy

Go to download

DWR is easy Ajax for Java. It makes it simple to call Java code directly from Javascript. It gets rid of almost all the boilerplate code between the web browser and your Java code. This version 4.0.2 works with Jakarta Servlet 4.0.2.

The newest version!
package org.directwebremoting.json.parse;

import java.io.Reader;

/**
 * Parse some JSON input and produce some objects that represent the input.
 * @author Joe Walker [joe at getahead dot ltd dot uk]
 */
public interface JsonParser
{
    /**
     * Walk along the json input calling methods on
     * decoder as we discover new tokens in the input.
     * @param input The json data source
     * @param decoder The decoder to turn parse events into a data tree.
     * @return The object constructed by the {@link JsonDecoder}.
     * @throws JsonParseException If the input is not valid.
     */
    Object parse(Reader input, JsonDecoder decoder) throws JsonParseException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy