我在尝试使用 JSON 解码这些数据时不知所措。
这是从 URL 返回的数据。它可以被缓存或其他东西,它每年都会改变一次:)
[{"service_type":"1","price":"0,62","money_added":"0,31","value":"70068","type":"TTL.X50"},{ "service_type":"2","price":"1,23","money_added":"0,61","value":"71068","type":"TTL.X100"},{"service_type ":"3","price":"2,46","money_added":"1,22","value":"72068","type":"TTL.X200"},{"service_type": "4","price":"3,69","money_added":"1,80","value":"73068","type":"TTL.X300"},{"service_type":"5 ","价格":"4,92","money_added":"2,45","value":"74068","type":"TTL.X400"},{"service_type":"6","price":"6,15","money_added" :"3,05","value":"75068","type":"TTL.X500"},{"service_type":"7","price":"7,38","money_added":" 3,65","value":"76068","type":"TTL.X600"},{"service_type":"8","price":"11,07","money_added":"5, 50","value":"79068","type":"TTL.X900"},{"service_type":"11","price":"12,30","money_added":"6,10" “值”:“91058”,“类型”:"TTL.X10"},{"service_type":"12","price":"20,91","money_added":"10,40","value":"91758","type":"TTL .X170"},{"service_type":"9","price":"23,37","money_added":"11,60","value":"91958","type":"TTL.X190 "},{"service_type":"13","price":"24,60","money_added":"12,20","value":"92058","type":"TTL.X20"} ,{"service_type":"10","price":"30,75","money_added":"15,80","value":"92578","type":"TTL.X250"}]price":"20,91","money_added":"10,40","value":"91758","type":"TTL.X170"},{"service_type":"9","price" :"23,37","money_added":"11,60","value":"91958","type":"TTL.X190"},{"service_type":"13","price":" 24,60","money_added":"12,20","value":"92058","type":"TTL.X20"},{"service_type":"10","price":"30, 75","money_added":"15,80","value":"92578","type":"TTL.X250"}]price":"20,91","money_added":"10,40","value":"91758","type":"TTL.X170"},{"service_type":"9","price" :"23,37","money_added":"11,60","value":"91958","type":"TTL.X190"},{"service_type":"13","price":" 24,60","money_added":"12,20","value":"92058","type":"TTL.X20"},{"service_type":"10","price":"30, 75","money_added":"15,80","value":"92578","type":"TTL.X250"}]X170"},{"service_type":"9","price":"23,37","money_added":"11,60","value":"91958","type":"TTL.X190" },{"service_type":"13","price":"24,60","money_added":"12,20","value":"92058","type":"TTL.X20"}, {"service_type":"10","price":"30,75","money_added":"15,80","value":"92578","type":"TTL.X250"}]X170"},{"service_type":"9","price":"23,37","money_added":"11,60","value":"91958","type":"TTL.X190" },{"service_type":"13","price":"24,60","money_added":"12,20","value":"92058","type":"TTL.X20"}, {"service_type":"10","price":"30,75","money_added":"15,80","value":"92578","type":"TTL.X250"}]"24,60","money_added":"12,20","value":"92058","type":"TTL.X20"},{"service_type":"10","price":"30 ,75","money_added":"15,80","value":"92578","type":"TTL.X250"}]"24,60","money_added":"12,20","value":"92058","type":"TTL.X20"},{"service_type":"10","price":"30 ,75","money_added":"15,80","value":"92578","type":"TTL.X250"}]
如何像从函数中一样轻松访问它?我尝试使用“newtonsoft”反序列化 JSON,但我失败了。
任何帮助将不胜感激!