As per title, is there any way to convert from C/AL object to JSON object? If I'm not mistaken, some of the data types in C/AL can be converted straight to .NET object (string, int, etc) but I'm not sure which types are / are not.
I'm looking to transfer tables and query type variables to managed codes using JSON. Do I need to construct the whole JSON and serialize it before sending it over? Or is there anything simpler way?
I'm looking if there's any way to do something like this:
JsonConvert.Serialize(MyTableVariable);
JsonConvert.Serialize(MyQueryVariable);