Json Path Issue in VUGEN/Performance Center

Hello,

I am trying to use a json path query to get all products or all bundle with products.

web_reg_save_param_json(
        "ParamName=products",                   
        " QueryString=$..products[?(@.type=='product' && || (@.type=='bundle' ))].id",          
        "SelectAll=Yes",
        "Notfound=Warning",
        "SEARCH_FILTERS",
        "Scope=Body",
        "LAST");

My problem comes when I try to use "@.bundleproducts.length!=0" with bundles   withouth getting matches even if there is an OR

web_reg_save_param_json(
        "ParamName=products",                   
        " QueryString=$..products[?(@.type=='product' && || (@.type=='bundle' && @.bundleproducts.length!=0))].id",          
        "SelectAll=Yes",
        "Notfound=Warning",
        "SEARCH_FILTERS",
        "Scope=Body",
        "LAST");

I tested the query in VSCode and online json path evaluator like https://jsonpath.com/ and it worked correctly, but in vugen/performance center  I get no matches.

 

¿I missed any option or vugen has a possible bug with json path queries?

 

Regards,

Adrian.

Parents Reply Children