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 Summary

    Modifier and Type
    Method
    Description
    Convert the given stream into a Node.
    toNode(String value, boolean lenient)
    Convert the given value into a Node
  • Method Details

    • toNode

      Node toNode(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(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