web icon indicating copy to clipboard operation
web copied to clipboard

How to return json?

Open deweixu opened this issue 8 years ago • 1 comments

How to return json

deweixu avatar Dec 25 '16 07:12 deweixu

string json = JsonConvert.SerializeObject(new { results = new List<Result>() { new Result { id = 1, value = "ABC", info = "ABC" }, new Result { id = 2, value = "JKL", info = "JKL" } } });

jatinS-dev avatar Dec 30 '20 08:12 jatinS-dev