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!