I must create a mapping where I need to map a value to a JSON node. JSON to produce would be like this:
{ "targetId":55, "permissions": { "39": { "edit":true, "view":true } } }
Mapping the value 55 to node targetId is easy, but how can I define the meta data to be able to map 39 value as a node inside the permission object ?
Emmanuel Chrisment
I must create a mapping where I need to map a value to a JSON node. JSON to produce would be like this:
{
"targetId":55,
"permissions": {
"39": {
"edit":true,
"view":true
}
}
}
Mapping the value 55 to node targetId is easy, but how can I define the meta data to be able to map 39 value as a node inside the permission object ?