title: Transform JSON-JSON JOLT
body: <p>I am quite new to JOLT and I need to transform my JSON files to the desired schema. This is my input</p>
  
  <pre><code>[
      {
          "PK": 12345,
          "FULL_NAME":"Amit Prakash",
          "BIRTHDATE":"1987-05-25",
          "SEX":"M",
          "EMAIL": "amprak@mail.com",
          "PHONE": "809386731",
          "TS":"2015-11-19 14:36:34.0"
      },
      {
          "PK": 12654,
          "FULL_NAME": "Rohit Dhand",
          "BIRTHDATE":"1979-02-01",
          "SEX":"M",
          "EMAIL": "rodha@mail.com",
          "PHONE": "937013861",
          "TS":"2015-11-20 11:03:02.6"
      },
      ...
  ]
  </code></pre>
  
  <p>and this is my desired output:</p>
  
  <pre><code>{
      "records": [
          {
              "attribs": [{
                  "type": "customer",
                  "reference": "CUST"
              }],
              "name": "Amit Prakash",
              "personal_email": "amprak@mail.com",
              "mobile": "809386731",
              "id": 12345 
          },
          {
              "attribs": [{
                  "type": "customer",
                  "reference": "CUST"
              }],
              "name": "Rohit Dhand",
              "personal_email": "rodha@mail.com",
              "mobile": "937013861",
              "id": 12654 
          },
          ...
      ]
  }
  </code></pre>
  
  <p>So far, I have only managed up to this point:</p>
  
  <pre><code>[
    {
      "operation": "remove",
      "spec": {
        "*": {
          "BIRTHDATE": "",
          "SEX": "",
          "TS": ""
        }
      }
    },
    {
      "operation": "shift",
      "spec": {
        "*": "records"
      }
    }
  ]
  </code></pre>
  
  <p>But I can't go on from here. I don't know how to rename keys in the output.</p>
  
  <p>Also, what's the alternative to <em>remove</em> operation? <em>remove</em> operation is good if you have fewer keys to exclude than to include, but how about the reverse (few keys to include, more than to exclude within a JSON object)?</p>