Which i then replace with regexp.
How can i have it just yield following result?
"amount" : 10000
I'd like to have it solved inthe Templater rather then resorting to regexp clean-up.
Tx in advance to all.
Which i then replace with regexp.
How can i have it just yield following result?
"amount" : 10000
I'd like to have it solved inthe Templater rather then resorting to regexp clean-up.
Tx in advance to all.
Best answer by debbiatsafe
Hello @gio
As the if then keywords are quoted, they are added to the JSON output.
Try the following XQuery expression in the JSONTemplater to get the desired output.
{if(fme:get-list-attribute("_list{}.IDENTIFICERENDE WAARDE") = "R")
then {"Value": @Value(_list{1}.BDRG_NETTO)}
else {}}
I hope this information helps.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.