Package net.sf.jasperreports.json.util
Class JsonUtil
- java.lang.Object
-
- net.sf.jasperreports.json.util.JsonUtil
-
public class JsonUtil extends Object
- Author:
- Narcis Marcu (narcism@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_UNKNOWN_OPERATOR
-
Constructor Summary
Constructors Constructor Description JsonUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.fasterxml.jackson.databind.ObjectMapper
createObjectMapper()
static boolean
evaluateJsonExpression(com.fasterxml.jackson.databind.JsonNode contextNode, String attributeExpression)
static com.fasterxml.jackson.databind.JsonNode
parseJson(File file)
static com.fasterxml.jackson.databind.JsonNode
parseJson(InputStream jsonStream)
static com.fasterxml.jackson.databind.JsonNode
parseJson(JasperReportsContext jasperReportsContext, String location)
static com.fasterxml.jackson.databind.JsonNode
parseJson(RepositoryContext repositoryContext, String location)
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_UNKNOWN_OPERATOR
public static final String EXCEPTION_MESSAGE_KEY_UNKNOWN_OPERATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
evaluateJsonExpression
public static boolean evaluateJsonExpression(com.fasterxml.jackson.databind.JsonNode contextNode, String attributeExpression) throws JRException
- Throws:
JRException
-
createObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper()
-
parseJson
public static com.fasterxml.jackson.databind.JsonNode parseJson(File file) throws JRException
- Throws:
JRException
-
parseJson
public static com.fasterxml.jackson.databind.JsonNode parseJson(JasperReportsContext jasperReportsContext, String location) throws JRException
- Throws:
JRException
-
parseJson
public static com.fasterxml.jackson.databind.JsonNode parseJson(RepositoryContext repositoryContext, String location) throws JRException
- Throws:
JRException
-
parseJson
public static com.fasterxml.jackson.databind.JsonNode parseJson(InputStream jsonStream) throws JRException
- Throws:
JRException
-
-