Frappe.call callback doesnt get the value from python function

when i recieve the returned value from the python function i cannot get it in the parameters in the callback function

this is the frappe.call function

problem solved by serializing the data from the back end (python) and then deserializing it in the front end (Js)

Hello @Ahmed_Atef

Please provide the code to serialise the dictionary in python and then to de-serialise it in JS. I have a similar requirement, but use a list/array rather than a dictionary.

Thanks so much

you should
import json
return json.dumps(myDict)
this can serialize it from backend and you can use JSON.parse() in js to de serialize

1 Like