Given a collection (not an array) like this:
{
"field1": {
"type": "string",
"value": "test"
},
"field2": {
"type": "array",
"value": []
},
"field3": {
"type": "string",
"value": "test"
},
"field4": {
"type": "array",
"value": []
}
}
how do I end up with just (filtering on type="array"):
{
"field2": {
"type": "array",
"value": []
},
"field4": {
"type": "array",
"value": []
}
}