You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constx={a: 1};jp.query(x,'a')// returns 1jp.value(x,'a',2);// returns 2, sets key 'a' to 2 in xjp.value(x,'b',2);// Error: couldn't understand pathjp.query(x,'b')// returns []jp.value(x,'$..b',2);// returns 2 and sets key 'b' to 2 in x
I would prefer to be able to leave the '$' off -- which mostly works -- as it seems redundant. But it seems to be necessary using "value" if the location does not yet exist.
The text was updated successfully, but these errors were encountered:
I would prefer to be able to leave the '$' off -- which mostly works -- as it seems redundant. But it seems to be necessary using "value" if the location does not yet exist.
The text was updated successfully, but these errors were encountered: