我使用以下代码从 API 获取响应字符串:
HttpResponseMessage response = await client.GetAsync(url);
string responseText = await response.Content.ReadAsStringAsync();
但是,我无法找出如何初始化 JsonObject,因为在 .NET for WinRT 中,构造函数 JsonObject() 不接受任何参数。对于记忆,我可以在“常规” .NET Framework 中做到这一点:
JsonObject root = new JsonObject(responseText);
我错过了什么?