I am using KVD app to save a JSON object in the DataLayer. My goal is to have a JSON object in a "parent" node and then each pair key/value of the JSON in a "nested" node. Similar to the node: system/resources/memory/available: "Parent" node: memory "Nested" nodes: available, buffer, cache... I have tried to creat nodes of type both Resource as Variable, and I only get the "parent" node (TestResource & TestVariable), and not the "nested" nodes (Var1, Var2 & Var3). My .fbs file is the following: // IDL file for sample schema.
namespace sample.schema;
table TestFlatbuffer {
Var1:double;
Var2:string;
Var3:uint64;
}
root_type TestFlatbuffer; And inside the App Data -> kvd Folder, I have modified the file nodes.json file with the following code: "types": [
{
"address": "types/test-schema",
"type": "test-schema.bfbs",
"metadata": {
"nodeClass": "Type"
}
}
],
"nodes": [
{
"address": "Test/TestResource",
"type": "types/test-schema",
"value": {
"Var1": 0,
"Var2": "string",
"Var3": 0
},
"metadata": {
"nodeClass": "Resource",
"description": "This node is of the custom flatbuffers type"
}
},
{
"address": "Test/TestVariable",
"type": "types/test-schema",
"value": {
"Var1": 0,
"Var2": "string",
"Var3": 0
},
"metadata": {
"nodeClass": "Variable",
"description": "This node is of the custom flatbuffers"
}
}, I looked in the Application Manual and in the following guide, and I cound't find a reference to this topic. Is it possible? How can I get the result I want using KVD? Thanks in advance! 😊
... View more