org.directwebremoting.json.parse
Interface JsonParser


public interface JsonParser

Parse some JSON input and produce some objects that represent the input.

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Method Summary
 java.lang.Object parse(java.io.Reader input, JsonDecoder decoder)
          Walk along the json input calling methods on decoder as we discover new tokens in the input.
 

Method Detail

parse

java.lang.Object parse(java.io.Reader input,
                       JsonDecoder decoder)
                       throws JsonParseException
Walk along the json input calling methods on decoder as we discover new tokens in the input.

Parameters:
input - The json data source
decoder - The decoder to turn parse events into a data tree.
Returns:
The object constructed by the JsonDecoder.
Throws:
JsonParseException - If the input is not valid.

Copyright 2008