I am trying to check whether the json object is empty/ null but I am getting the following error:
org.mule.runtime.core.api.expression.ExpressionRuntimeException: "Unable to parse empty input, while reading `obj` as Json.
1|
^
Trace:
at main (line: 1, column: 1)" evaluating expression: "isEmpty(vars.obj)".
also, I observed that the variable looks like this in the mule debugger :
obj=
Please suggest a solution.