Hi Thank you for the reply, full JSON is like below. I have only 2 arrays inside the child object (PropertyNames and Propertvalues) that needs to be represented as key-value and I am not sure of it
“Type”:“software.type”,
“PropertyNames”:[“Name”,“PartitionID”],
“Propertyvalues”:[“CKCle”,“1234”],
“Children”:[
{
“Type”:TestChildrenType",
“PropertyNames”:[“personal”,“clarence”],
“Propertvalues”:[“209”,“112”]}
]
}
I need to convert this JSON to key-value because I am developing a REST call that only understands Key value. I want to do some test with this, REST call is not working so I think I am using a wrong format currently
I am planning to use key-value as below
Type -----------------------------------> software.type
PropertyNames[ ] -----------------------------------> Name
PropertyNames[ ] ------------------------------------> PartitionID
Propertyvalues[ ] -------------------------------------> testName
Propertyvalues[ ] -------------------------------------> testPartitionID
Children[ ].Type -------------------------------------> TestChildrenType
Children[ ].PropertyNames[ ] ------------------------------------> personal
Children[ ].PropertyNames[ ] ------------------------------------> clarence
Children[ ].Propertvalues[ ] ------------------------------------> 209
Children[ ].Propertvalues[ ] ------------------------------------> 112
Do you think above format is correct? please let me know