In case the selection has no record as result, WDS response is composed by only the Header but the last comma makes the JSON invalid. [{"header0": "parent","header1": "code","header2": "label","header3": "s"},]