Skip to content

The question about nulls and recursion #165

Description

@devAarno

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions