//This function will call web api shungarts
CallShungArtsAPI(){
$.ajax({
url: "http://192.168.1.75:81/ShungArtsWebService.asmx/RetrieveUserPostsForDefaultWithAPI_key",
type: 'GET',
data: {_apiKeypi:'PutAPI_KeyHere'},
dataType: 'Text',
//dataType:'Text',
//contentType: 'application/json; charset=utf-8',
success: function (data) {
//var mt = data.toString()
console.log(data)
var cleanData = data.toString().replace('','')
var Stripped = cleanData.toString().replace('','')
//var j = JSON.stringify(Stripped)
//console.log(md)
// console.log(j)
var LastStripp = Stripped.replace('','')
console.log(LastStripp);
var StringF = JSON.stringify(LastStripp)
var J = JSON.parse(StringF)
var k = $.parseJSON(J)
console.log(k)
//var m = JSON.stringify(data)
//console.log(m)
// var me = $.parseJSON(m)
// var mk = JSON.parse(JSON.stringify(data));
//var k = JSON.parse(mk)
//JavaScriptSerializer().Serialize(H)
//var yourval = jQuery.parseJSON(JSON.stringify(data));
//console.log(me)
// console.log('_______________')
// console.log(m)
//console.log('_______________')
//console.log(mk)
}
,
error: function (xhr, textStatus, errorThrown) {
console.log('Error in Operation:=> ' + textStatus +': '+ errorThrown);
}
})
}