I am running an API which runs a store procedure on a Sqlserver table into a dataframe and then return the result to the user in the form of Json. Below is the code I wrote