title: how to build the following dictionary from a json file?
body: <p>Hello I am working with a json file that looks as follows:</p>
  
  <pre><code>{
      "workspace_id": "car-dashboard-en",
      "name": "Car Dashboard - Sample",
      "created": "2017-03-20T21:24:41.498Z",
      "intents": [
        {
          "intent": "about_VA",
          "created": "2017-03-14T02:02:16.290Z",
          "updated": "2017-03-14T02:02:16.290Z",
          "examples": [
            {
              "text": "any music reccomendation?",
              "created": "2017-03-14T02:02:16.290Z",
              "updated": "2017-03-14T02:02:16.290Z"
            },
            {
              "text": "can you recommend ood jazz music?",
              "created": "2017-03-14T02:02:16.290Z",
              "updated": "2017-03-14T02:02:16.290Z"
            },
            {
              "text": "cloud you recommend music?",
              "created": "2017-03-14T02:02:16.290Z",
              "updated": "2017-03-14T02:02:16.290Z"
            },
            {
              "text": "your name",
              "created": "2017-03-14T02:02:16.290Z",
              "updated": "2017-03-14T02:02:16.290Z"
            }
          ],
          "description": null
        },
        {
          "intent": "capabilities",
          "created": "2017-03-14T02:02:16.290Z",
          "updated": "2017-03-14T02:02:16.290Z",
          "examples": [
            {
              "text": "adapt to current weather condition",
              "created": "2017-03-14T02:02:16.290Z",
              "updated": "2017-03-14T02:02:16.290Z"
            },
            {
              "text": "book a flight for NY on sunday",
              "created": "2017-03-14T02:02:16.290Z",
              "updated": "2017-03-14T02:02:16.290Z"
            },
  
            {
              "text": "can you change lanes",
              "created": "2017-03-14T02:02:16.290Z",
              "updated": "2017-03-14T02:02:16.290Z"
            },
  </code></pre>
  
  <p>I have one json that has a part called 'intents' this part is composed by several intents and every intent has one list of values called 'text',</p>
  
  <p>I would like to extract from this file a dictionary as follows:</p>
  
  <pre><code>dictionary = {'intent_name':[text1,text1,text3,...],'intent_name2':[text1,text2,text3,...],...}
  </code></pre>
  
  <p>the key of this dictionary is the name of the intent associated and the values is every text of this intent,</p>
  
  <p>Unfortunately I am a beginner working with json files, so I tried:</p>
  
  <pre><code>import json
  
  with open('workspace-car-dashboard-en.json') as json_file:  
      data = json.load(json_file)
  </code></pre>
  
  <p>with the following code I am extracting and printing all the text values as follows: </p>
  
  <pre><code>for element in data['intents']:
      for element2 in element['examples']:
          print(element2['text'])
  </code></pre>
  
  <p>I got:</p>
  
  <pre><code>any music reccomendation?
  can you recommend ood jazz music?
  cloud you recommend music?
  do you hate
  Do you like
  do you love
  </code></pre>
  
  <p>However I am not able to build the dictionary on the fly and making an append to all the text values, so I really would like to appreciate support to achieve this difficult task. 
  I was not able to include the complete json file since it is very large so I hope this example is enough.</p>