Interface JsonConverter

  • All Known Implementing Classes:
    JacksonJsonConverter

    interface JsonConverter
    A JSON Converter which parses an input stream into a Node. This class is a Pioneer abstraction which allows using different JSON parsers.
    • Method Detail

      • toNode

        Node toNode​(java.io.InputStream stream)
        Convert the given stream into a Node.
        Parameters:
        stream - the stream that should be converted
        Returns:
        the Node for the stream, never null
      • toNode

        Node toNode​(java.lang.String value,
                    boolean lenient)
        Convert the given value into a Node
        Parameters:
        value - the json value that should be converted
        lenient - whether the conversion should be lenient
        Returns:
        the Node for the value, never null