Building a Filter in a loop, JSONPath -


i want loop through array of strings , add each string jsonpath filter object:

filter f = filter(); // error (int j = 0; j < in_paths.size(); j++)  {       f = f.and(where(in_paths[j]).exists(true)); } 

the problem approach can't seem create "empty" filter. know if possible? if not, can offer alternative?

the initial filter can check see if document root exists.

filter f = filter(where("$").exists(true)); (int j = 0; j < in_paths.size(); j++)  {       f = f.and(where(in_paths[j]).exists(true)); } 

Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -