i have one json data model like:-
{
"Details": {
"EntityType": {
"Type": "string",
"Value": ""
},
"EntityName": {
"Type": "string",
"Value": ""
},
"EntityId": {
"Type": "string",
"Value": ""
}}
and i have one json that is key value pair like
{
"EntityType":"person",
"EntityName":"Ankit",
"EntityId":"11"
}
i want to do my key value json mapping into datamodel.
Desired output:-
{ "Details": { "EntityType": { "Type": "string", "Value": "person" }, "EntityName": { "Type": "string", "Value": "Ankit" }, "EntityId": { "Type": "string", "Value": "11" }}
if anybody knows about it please share your knowledge