Hi @Parthiban Balraj,
Thank you for posting in this community.Unfortunately, we can't call the JSON code or add JSON code reference from library files in SharePoint list view JSON formatter.
The official Microsoft documentation from SharePoint Online (Use view formatting to customize SharePoint) does not provide a way to call the JSON code or add JSON code reference from library files in SharePoint list view JSON formatter, so this is not supported by SharePoint at this time.
Thank you for your kind understanding.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.