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

Added a path extension that exposes datum's path from the jsonpath itself #176

Merged
merged 2 commits into from
Aug 13, 2024
Merged

Conversation

dlastov
Copy link

@dlastov dlastov commented Jul 30, 2024

Obviously this extension does not have much meaning for a developer who uses jsonpath in his python code and can call simply 'datum.path'.

However it opens possibilities for new use cases where a python-written application implements a service that exposes jsonpaths to the user.

As a particular example, consider XPath expressions (with their name() function) in XSLT template.
Similarly, someone could write a templating system that uses jsonpath.

<template match="$">
    <for-each select="*">Object <value-of select="@.`path`"/> has value <value-of select="@"/></for-each>
<template>

@michaelmior michaelmior merged commit 519d97a into h2non:master Aug 13, 2024
7 checks passed
@michaelmior
Copy link
Collaborator

Thanks @dlastov!

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

Successfully merging this pull request may close these issues.

2 participants