将任意json响应转换为“事物"列表. [英] Converting arbitrary json response to list of "things"

查看:133
本文介绍了将任意json响应转换为“事物"列表.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个不寻常的问题.这可能不是一个很现实的情况,但这就是我所要学习的内容,所以请多多包涵.

I'm having an unusual problem. It might not be a very realistic scenario, but this is what I have gotten myself into, so please bear with me.

我有一个返回Json的API,并且我正在使用Json.NET处理Json响应.问题在于API可以返回很多东西,而且我必须能够通过以下方式反序列化响应:

I have an API that returns Json and I'm using Json.NET to process the Json response. The problem is that the API can return a number of things and I have to be able to deserialize the response the following way:

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆