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

The question about nulls and recursion #165

Open
devAarno opened this issue Dec 26, 2021 · 1 comment
Open

The question about nulls and recursion #165

devAarno opened this issue Dec 26, 2021 · 1 comment

Comments

@devAarno
Copy link

devAarno commented Dec 26, 2021

Hello, everyone!

I need some explanations about how the recursion (deep scan, ..) rule works as an end rule.

Example 1:

Let's have JSON

{"a":{"a":123}}

The JSONPath $..a.. returns

[
  {
    "a": 123
  },
  123
]

Example 2:

Let's have JSON

{"a":{"a":null}}

The same JSONPath returns

[
  {
    "a": null
  },
  null,
  null
]

As you can see, there is an extra null here.

Are examples demonstrate correct behavior? If yes, how should I interpret the difference between examples?

Thank you!

@kaush-13
Copy link

There seems to be a bug around null values. I have noticed similar behavior.

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