Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A ArduinoJson
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 24
    • Issues 24
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Benoît Blanchon
  • ArduinoJson
  • Issues
  • #1309
Closed
Open
Issue created Jul 11, 2020 by Administrator@rootContributor

Enhancing the new Filtering with a wildcard

Created by: joysfera

The cool filtering while deserializing introduced in v6.15 is great but it could be even better if there was a possibility to specify a wildcard for parents of nested documents if you need to filter somewhere deeper in the tree.

Imagine JSON document like this:

{
    "somekey": { "name": "some uninteresting name", "value": 2.718281828 },
    "otherkey": { "name": "guess what the value is", "value": 3.1415926535 },
    ...
    "xyzkey":  { "name": "ran out of interesting constants", "value": 1000 }
}

And I'd need to filter out the names (because they're long and consume a lot of precious RAM) and preserve just the key names (that unfortunately hold some important information) and the values inside of their objects (because the values are what matters).

So the Filtering document would need to look kind of like this:

{ "*": { "value": true } }

Would this be possible to implement easily and cleanly, please? Or any better idea?

Thank you!

Assignee
Assign to
Time tracking