title: How to access tweet text in a json file to perform further analysis?
body: <p>I am using twitter API to fetch tweets about an input search term and storing them into a json file as shown in the code below. I am only interested in the tweet text and nothing else. How do I extract the text and ignore anything else? The end goal is to clean the individual tweets and perform sentiment analysis on them. Thanks! </p>
  
  <pre><code>    consumerKey = "xxx"
      consumerSecret = "xxx"
      accessToken = "xxx"
      accessTokenSecret = "xxx"
  
      auth = tweepy.OAuthHandler(consumerKey, consumerSecret)
      auth.set_access_token(accessToken, accessTokenSecret)
      api = tweepy.API(auth)
  
      # Specify search term and count of tweets:
      searchTerm = input("Enter topic: ")
      limit = int(input("Enter the maximum number of tweets: "))
  
      tweets = tweepy.Cursor(api.search,q=searchTerm,count=limit, lang="en", tweet_mode='extended').items(limit)
  
      for tweet in tweets:
  
          # add to JSON                            
          with open('tweets.json', 'w', encoding='utf8') as file:
              json.dump(tweet._json, file)
  </code></pre>