Class JsonUtil

java.lang.Object
net.sf.jasperreports.json.util.JsonUtil

public class JsonUtil extends Object
Author:
Narcis Marcu (narcism@users.sourceforge.net)
  • Field Details

    • EXCEPTION_MESSAGE_KEY_UNKNOWN_OPERATOR

      public static final String EXCEPTION_MESSAGE_KEY_UNKNOWN_OPERATOR
      See Also:
  • Constructor Details

    • JsonUtil

      public JsonUtil()
  • Method Details

    • 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