我正在尝试将内容添加到从api获取的动态数组中。不知道如何去做。
我尝试了很多事情,但仍然无法正常工作
dynamic userdataa = JsonConvert.DeserializeObject(response.Content); \\Restsharp web request to json parsed dynamic
Console.Write(userdataa.inventory.hat) // This is the array I want to add to,It returns [{"ID": 65}] I would like to add a item to it eg. [{"ID": 65},{"ID": 68}]
这是我要添加到的数组,它返回[{“ ID”:65}]我想向其中添加一个项目。 [{“ ID”:65},{“ ID”:68}]