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
  • #959
Closed
Open
Issue created Apr 02, 2019 by Administrator@rootContributor

Partly deserializing a JsonObject for a known property

Created by: smuellener

I would like to deserialize a JsonObject partly to save memory by not deserializing properties of unknown size.

Example:

I have a string containing a serialized partly known object:

{
    "UnknownProperty": "valueWithUnknownSize",
    "KnownProperty": "valueWithKnownSize"
}

Is it possible to only deserialize a known specific property from a serialized object?

E.g.:

StaticJsonDocument<64> doc;
deserializeJsonSpecificProperty(doc, example, "KnownProperty");

This would be helpful for a library that only knows (the required size for deserializing) part of the object. Thanks!

Assignee
Assign to
Time tracking