Interface JSONContext.Parser

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <R> R parse​(java.io.Reader reader, java.lang.Class<R> type)
      Parses a JSON string from the given reader.
    • Method Detail

      • parse

        <R> R parse​(java.io.Reader reader,
                    java.lang.Class<R> type)
             throws java.text.ParseException

        Parses a JSON string from the given reader.

        Type Parameters:
        R - the type of the result
        Parameters:
        reader - the reader to parse from
        type - the type to cast the result to
        Returns:
        the result of the JSON parsing
        Throws:
        java.text.ParseException - if the JSON is malformed