public final class DefaultJsonParser extends Object implements JsonParser
JsonParser
.Constructor and Description |
---|
DefaultJsonParser(MuleContext muleContext) |
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
asJsonNode(Object input)
Parses the given
input into a JsonNode . |
public DefaultJsonParser(MuleContext muleContext)
public com.fasterxml.jackson.databind.JsonNode asJsonNode(Object input) throws IOException
input
into a JsonNode
.
This implementation is capable of handling inputs of these types:
byte[]
JsonNode
input
is not of any of those types, then this parser
will try to locate a Transformer
capable of transforming
it into any of the following types (in the listed order):
JsonNode
Transformer
is found, then null
is returned.asJsonNode
in interface JsonParser
input
- the input to be transformed into a JsonNode
JsonNode
if the input could be parsed. null
if it's not possible to transformIOException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.