Hi,
Given is the following form of datastructure
set a { DATE "2019-05-12"
{ PARAMETERS { { NAME "LENGTH" VALUE "100" }
{ NAME "HEIGHT" VALUE "314" }
{ NAME "WEIGHT" VALUE "1000" }
{ NAME "COLOR" VALUE "blue" } ) )
In reality, this datastructure is much bigger. The structure is given by a certain software as a result.
What is the advantage of storeing to key-value pairs which keys are NAME and VALUE and which first value
looks like a key and its second value is the value (instead of storing "real" key-value pairs like "Weight" 1000)?
How can I effectively access this structure to retrieve - say - the COLOR "blue" from it?
Thanks in advance!
Given is the following form of datastructure
set a { DATE "2019-05-12"
{ PARAMETERS { { NAME "LENGTH" VALUE "100" }
{ NAME "HEIGHT" VALUE "314" }
{ NAME "WEIGHT" VALUE "1000" }
{ NAME "COLOR" VALUE "blue" } ) )
In reality, this datastructure is much bigger. The structure is given by a certain software as a result.
What is the advantage of storeing to key-value pairs which keys are NAME and VALUE and which first value
looks like a key and its second value is the value (instead of storing "real" key-value pairs like "Weight" 1000)?
How can I effectively access this structure to retrieve - say - the COLOR "blue" from it?
Thanks in advance!