Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Json Keys #246

Open
alloka opened this issue Nov 14, 2024 · 0 comments
Open

Support for Json Keys #246

alloka opened this issue Nov 14, 2024 · 0 comments

Comments

@alloka
Copy link

alloka commented Nov 14, 2024

Hello everyone,

so I have the following Json file: [{"type":"node","id":"0","labels":["Sport"],"properties":{"sport_id":100,"sport_name":"Tennis"}},{"type":"node","id":"1","labels":["Student"],"properties":{"name":"Demi Moore","id":20}},{"type":"node","id":"7","labels":["Student"],"properties":{"name":"Venus Williams","id":10}},{"type":"relationship","id":"0","label":"practises","properties":{"duration":10},"start":{"id":"7","labels":["Student"],"properties":{"name":"Venus Williams","id":10}},"end":{"id":"0","labels":["Sport"],"properties":{"sport_id":100,"sport_name":"Tennis"}}},{"type":"relationship","id":"1","label":"practises","properties":{"duration":20},"start":{"id":"1","labels":["Student"],"properties":{"name":"Demi Moore","id":20}},"end":{"id":"0","labels":["Sport"],"properties":{"sport_id":100,"sport_name":"Tennis"}}}]

and I was wondering if there is a way using the json path $.properties.[*].~ to reference the properties keys in this json file. something like $.properties.[*].~ in order to get properties as sport_id and sport_name without prior knowledge of them

Best regards,
Ali.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant