Quantcast
Channel: Martin Dráb's Activities
Viewing all articles
Browse latest Browse all 17532

Serialize ax object to Json string using Newtonsoft.Json.dll

$
0
0

I used the below code to serialize ax object to Json using Newtonsoft.Json.dll

static void SMCJsonTest(Args _args)
{
str jsonData;
SMCTest test;

test = new SMCTest();
test.parmTest("Hello");

jsonData = Newtonsoft.Json.JsonConvert::SerializeObject(test, Newtonsoft.Json.Formatting::Indented);

info(strFmt("%1",jsonData));
}

but the result is : 

{
"XppRuntime": null,
"IsRemoteKernel": false,
"Context": {
"HttpContextAccessible": false
}
}

I think it is compiler execution issue or security issue , please advice .


Viewing all articles
Browse latest Browse all 17532

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>