Problem with JsonConvert.SerializeObject
Posted: Tue Mar 26, 2019 7:42 am
Hi,
i'm testing with the new 2.0 preview release and with the addon jsonconvert from https://gist.github.com/cshtml5/2446871 ... 448b6aca54.
i've no problem to deserialize but simple serialize does only return an empy value.
In temp i get only {} so it looks like something is wrong. Could someone help me ?
Greets
i'm testing with the new 2.0 preview release and with the addon jsonconvert from https://gist.github.com/cshtml5/2446871 ... 448b6aca54.
i've no problem to deserialize but simple serialize does only return an empy value.
Code: Select all
internal void check();
{
test x = new test();
string temp = JsonConvert.SerializeObject(x, true);
}
public class test
{
public string A = "AAA";
public string B = "BBB";
}
In temp i get only {} so it looks like something is wrong. Could someone help me ?
Greets