make jsonpath parser a little more elegant