-
Couldn't load subscription status.
- Fork 208
Open
Description
test code:
from jsonpath_rw import parse as parserw
@exec_time()
def test_jsonpathrw(data, field):
jsonpath_expr = parserw(field)
return jsonpath_expr.find(data)
js = {'z': [{'z1': 10}, {'z1': 20}]}
print(test_jsonpathrw(js, 'z')[0].value)output is:
func:{test_jsonpathrw} exec time is:{9.79468} ms
[{'z1': 10}, {'z1': 20}]just find 'z' node of the very simple json object. find function is so slowly. it can be work?
Metadata
Metadata
Assignees
Labels
No labels