I'm trying to update values within an array inside an array using the utility jq. I've pasted the sample json below. 

More specifically: Within the sheets array, and then within the formulas array, I'd like to change each columnName with a value of "MONTH" to "YEAR". I'd like to do the same for within the sheets array, within the columnStyles array, change each incidence of "MONTH" also to "YEAR"

This jq filter gets me the list of columnNames.

```
.sheets[1] | .formulas[] | .columnName

```

How can I edit the entire file in place by just updating the values I want? Do I use map with if?

And what if I wanted to edit a portion of a value? For example, in a forumlaString property, just changing the part of the string that contains MONTH but leaving the rest intact?

```
{
  "version": "6.1.1",
  "className": "xyz",
  "sheets": [    
  {
      "name": "Pass1",
      "sheetId": "95e6c2cd-abbe-46c1-8012-bdf37438b9b7",
      "keep": true,
      "formulas": [
        {
          "columnName": "SAMPLE_PROVIDER",
          "columnId": "0",
          "columnIndex": 0,
          "formulaString": "\u003dGROUPBY(#Raw!SAMPLE_PROVIDER)"
        },
        {
          "columnName": "MONTH",
          "columnId": "1",
          "columnIndex": 1,
          "formulaString": "\u003dGROUPBY(#Raw!MONTH)"
        }
      ],
      "columnStyles": [
        {
          "columnId": "0",
          "name": "SAMPLE_PROVIDER",
          "width": 206,
          "thousandSeparator": true
        },
        {
          "columnId": "1",
          "name": "MONTH",
          "width": 100,
          "thousandSeparator": true
        }
        ],
      "nextColumnId": 2
    },
    {
      "name": "Transform1",
      "sheetId": "49071c1c-fa84-4ae3-92c1-b63175a6b26c",
      "keep": true,
      "formulas": [
        {
          "columnName": "SAMPLE_PROVIDER",
          "columnId": "0",
          "columnIndex": 0,
          "formulaString": "\u003d#Pass1!SAMPLE_PROVIDER"
        },
        {
          "columnName": "MONTH",
          "columnId": "1",
          "columnIndex": 1,
          "formulaString": "\u003d#Pass1!MONTH"
        }
      ],
      "columnStyles": [
        {
          "columnId": "0",
          "name": "SAMPLE_PROVIDER",
          "width": 179,
          "thousandSeparator": true
        },
        {
          "columnId": "1",
          "name": "MONTH",
          "width": 100,
          "thousandSeparator": true
        }
      ],
      "nextColumnId": 3
    }
  ],
  "advancedSchedulingInUse": true,
  "errorHandlingMode": "IGNORE"
}

```