You write the following code segment to create an Account record by using jQuery and the
Representational State Transfer (REST) endpoint. (Line numbers included for reference
only.) The variable ODataPath is set correctly. Which code segment should you include at
line 03 to create the new Account record?
A.
var entity = DSON.stringify(account),
B.
var entity = JSON.parse(account),
C.
var entity = $.parseXML(account)t
D.
var entity = encodeURI(account),
should be A
Correct answer is ‘A’ for sure.
I agree, the right answer is A, but it should be:
var entity = JSON.stringify(account);
You can check it in
https://msdn.microsoft.com/en-us/library/gg328025(v=crm.7).aspx