我们如何将代码段存储在JSON对象中?

时间:2019-05-07 03:47:53

标签: c# json jsonp

我需要将代码段存储为对象的一部分,如何存储它。.

下面是JSON示例:

{
    "codesamplevalue": "$.ajax({url: _spPageContextInfo.webAbsoluteUrl\"_api/web/lists/GetByTitle('companyInfo')/items?$select=Company,Industrytype:typedata:dataheaders:{Accept:\"application/json;odata=verbose\"Content-Type:\"application/json;odata=verbose\"X-RequestDigest:\"$(#__REQUESTDIGEST).val()\"IF-MATCH:\"*\"X-HTTP-Method:\null\n}cache:falsesuccess:function(data){console.log(\"successfull data get\")}error:function(data){console.log(\"failure of the rest call\")});",
    "codecategory": "GetItems",
    "programmingcategory": "Rest Api",
    "methodtype": null
}

0 个答案:

没有答案