adriank / ObjectPath

The agile query language for semi-structured data
http://objectpath.org
MIT License
380 stars 93 forks source link

objectpath.Tree(jsoncontent).execute('$.*') is raise error 'Syntax error' #106

Closed italanchan closed 1 year ago

italanchan commented 1 year ago

Hi,

As subject, ObjectPath will raise error when execute select all nodes query. ($.*)

seletor = '$.*' # input by developers. objectpath.Tree(jsoncontent).execute(selector)

How to write the selector to select whole jsoncontent ?

italanchan commented 1 year ago

Just upgrade to version 0.6.1, the above script is ok to run without error.