How can I remove sub-objects? 

```
[{
    "id": "1",
    "desc": "SOME PRODUCT",
    "codigo": "CODE-28",
    "codigoBarras": "2000000001",
    "unidade": "PCT",
    "price": "24.15",
    "current_inventory": [{
        "2kg": "5",
        "5kg": "5",
        "10kg": "5",
        "20kg": "5",
        "productId": "1"
     }]
 }]

[{
    "id": "1",
    "desc": "SOME PRODUCT",
    "codigo": "CODE-28",
    "codigoBarras": "2000000001",
    "unidade": "PCT",
    "price": "24.15",
    "current_inventory_2kg": "5",
    "current_inventory_5kg": "5",
    "current_inventory_10kg": "5",
    "current_inventory_20kg": "5",
}]

```