When the user tried to use json_to_rdb in python code there is a JSONDecoderError.


Solution -


The solution is instead of passing response.json() directly to the json_to_rdb method we need to add a condition if the response.json() is not null.

ex:

   if response.status_code == 200 and response.json() !="":

       json_to_rdb(<params>)


Also, we are trying to handle this in json_to_rdb utility.