Go to instagram on your phone → Accounts Centre → Your information and permissions → Download your information → Download or transfer information → Some of your information → Followers and following & click next → Download to device → Select Date range: "All time" and Format: "JSON" → Create files.
Your data should be ready for download in a few minutes. After it is done, unzip and find the following and followers_1 JSON files.