How would i store this kind of JSON structure in salesforce?
"elementOne": [
{
"itemOne":"valueOne",
"itemTwo":"valueTw0",
"embeddedElementOne":{"embeddedItemOne":"embeddedValueOne"},
"embeddedElementTwo":{"embeddedItemTwo":"embeddedValueTwo"}
}
],
"elementTwo":[
{
"secondElementOne":"Value",
"secondEmbeddedElementOne":{"SomethingHere":"SomeValueHere"}
}
]
If elementOne is Custom Object and itemOne, itemTwo are fields on that Object, what would embeddedElementOne will be? How and where to store that and how would send the same kind of structure when using POST method?