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

Can you get a node by using a string path somehow? #60

Open
KarlOfDuty opened this issue Aug 1, 2018 · 3 comments
Open

Can you get a node by using a string path somehow? #60

KarlOfDuty opened this issue Aug 1, 2018 · 3 comments

Comments

@KarlOfDuty
Copy link

Such as "category.object.parameter" retrieving the node at

category:
    object:
        parameter: "hello"

In all other YAML libraries I've used in other languages one can get a node by simply entering the path to it as a string in a get function, is there a feature like that here?

@JimmyCushnie
Copy link

In all other YAML libraries I've used in other languages one can get a node by simply entering the path to it as a string in a get function

Could you name these libraries? I am looking for this feature specifically

@KarlOfDuty
Copy link
Author

I've only used the one included with spigot in java and yaml-cpp in C++.

@KarlOfDuty
Copy link
Author

I've solved this issue in a pretty janky way with C# here if you are interested: https://stackoverflow.com/questions/51630430/getting-a-yamldotnet-sharpyaml-node-using-a-string-path-such-as-category-objec

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

2 participants