code: def instagram_profile_json(username):
      
      scripts = instagram_profile_js(username)
      source = None
  
      if scripts:
          for script in scripts:
              if script.text:
                  if script.text[0:SCRIPT_JSON_PREFIX] == "window._sharedData":
                      source = script.text[SCRIPT_JSON_DATA_INDEX:-1]
  
      return source
docs: Get the JSON data string from the scripts.
      :param username:
      :return: