Best Match (Multiple)
1 min
Evaluates and returns the first non empty match of two JSON Objects provided. The function looks to exclude nulls, non-json values or json objects without any keys.
rules supported are "first_not_empty"
API Definition
Best Match API
Call the following API:
POST
https://orca.pathfix.com/functions/json/bestmatch
{
"bestmatches": {
"best_match": {
"input": [
null,
{
"second_json":"has_value"
}
],
"rule": "first_not_empty"
"default":{
"default_json":"none found"
}
}
}
}