adriank / ObjectPath

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

BUG: Dictionary keys with spaces or special character not supported #62

Closed Sanjay015 closed 6 years ago

Sanjay015 commented 6 years ago

I have a dictionary like:- {"node1": " value1", "node (%)": "value 2", "node 3": "value2"} and I am trying to access $.node 3 or $.node (%) then it is throwing SyntaxError. Support on this will be very helpful.

adriank commented 6 years ago

$." node" or $.*[" node"]

On Tue, 20 Feb 2018 at 16:13, Sanjay Yadav notifications@github.com wrote:

I have a dictionary like:- {"node1": " value1", "node (%)": "value 2", "node 3": "value2"} and I am trying to access $.node 3 or $.node (%) then it is throwing SyntaxError. Support on this will be very helpful.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/adriank/ObjectPath/issues/62, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKyciUy-BvfZUbvzUxqc5B-cMKPGKo4ks5tWuD-gaJpZM4SMHM2 .

-- Greetings, Adrian Kalbarczyk

http://kalbarczyk.co

Sanjay015 commented 6 years ago

Thanks. It works.