Frappe Client Insert into Doctype issue


I have got this error when I tried to insert data into target server doctype.

MY CODE (Simplified):

ps. My code has more than 100+ parameters but i removed them for easy display here.
Can anyone help me with the error : ValueError: No JSON object could be decoded
Could it be my HTML passing some non-acceptable value to frappe?