Hi,
Not sure if you are looking for the exact thing but this should give you the expected output from the sample you provided:
[
// Flatten an array of photo objects into a prefixed
// soup of properties.
{
"operation": "shift",
"spec": {
"content": {
"*": {
"*": {
"*": {
"$": "error",
"$1": "product",
"$2": "ErrorType",
"@": "q"
}
}
}
}
}
}
]
If that helps, please accept solution. Thanks