functions property
The functions related to JsonPath processing.
Implementation
static final functions = {
'JsonPath': (value) => JsonPath(value),
'json_path': (value, expression) {
dynamic result;
final values = JsonPath(expression).read(value);
if (values.isNotEmpty) {
result = values.first.value;
}
return result;
}
};