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

What if you have a . for the key in your map / object? #27

Closed
ardok opened this issue Jan 27, 2017 · 1 comment
Closed

What if you have a . for the key in your map / object? #27

ardok opened this issue Jan 27, 2017 · 1 comment
Labels

Comments

@ardok
Copy link

ardok commented Jan 27, 2017

Say

{
  'a.b': {
    'c': 2
  }
}

path: 'a.b.c' won't work?
Can we make it accept a list? path: ['a.b', 'c'] ?
Or is it already there?

@CacheControl
Copy link
Owner

CacheControl commented Jan 27, 2017

@ardok This functionality is provided to json-rules-engine by a dependency called selectn. They have a section in their README that covers this case. Why don't you give that a try. This is a new use case that I wasn't aware of and haven't tried myself, so let me know if you have any difficulties.

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

No branches or pull requests

2 participants