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
Currently, one can use json pointer to check for whether a path is present in a json object via contains and one can access the path via at and operator[]. However, this effectively forces us to do the sequence of lookups along the path twice which forces the user that wants to use JSON pointer into an unnecessary performance pessimization.
From looking at the existing implementations of e.g. contains in the json_pointer class it seems like that would not be hard, in fact I am working on a branch/PR to propose an implementation, but I wanted to check here first what others think and whether this is intentionally left out as a feature.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently, one can use json pointer to check for whether a path is present in a json object via
contains
and one can access the path viaat
andoperator[]
. However, this effectively forces us to do the sequence of lookups along the path twice which forces the user that wants to use JSON pointer into an unnecessary performance pessimization.From looking at the existing implementations of e.g.
contains
in thejson_pointer
class it seems like that would not be hard, in fact I am working on a branch/PR to propose an implementation, but I wanted to check here first what others think and whether this is intentionally left out as a feature.Beta Was this translation helpful? Give feedback.
All reactions