better code that works in the latest versions of the BAS without problems:
_sa = function (id){
log(id)
ScriptWorker.SetCurrentAction(id)
}
to stop logging :
_sa = function (id){ }
@Air77 said in Есть ли в JSONPath аналог contains из XPath ?:
В документации нет инфы
Можете использовать метод indexOf, например $.books[?(@.description.indexOf("query") > -1)] в данных:
{"books":[{"title":"Learn XPath","description":"XML query language"},{"title":"Master JSON","description":"JSON query patterns"}]}