请帮我.我在哪里缺少信息?我需要反序列化以下JSON字符串.
{ "结果":[{ "系列":[{ "Name": "PWR_00000555", "列": "时间", "最后一个"], "值":["1970-01-01T00:00: 00Z",72]]}]}]}
为此,我定义了我的课程:
public class Serie
{
public Serie()
{
this.Points = new List<object[]>();
}
[JsonProperty(PropertyName = "results")]
public string results { get; set; }
[JsonProperty(PropertyName = "series")]
public string sries { get; set; }
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
[JsonProperty(PropertyName = "columns")]
public string[] ColumnNames { get; set; }
[JsonProperty(PropertyName = "values")]
public List<object[]> Points { get; set; }
Run Code Online (Sandbox Code Playgroud)
但是当我尝试使用反序列化器时,它会给出一个例外.
{"无法将当前JSON对象(例如{\"name \":\"value \"})反序列化为类型'System.Collections.Generic.List`1 [InfluxDB.Serie]',因为该类型需要JSON数组(例如[1,2,3])要正确反序列化.\ r …
我们希望将Android手机用于专用应用程序.有人可以建议我们如何才能实现这一目标.
以下是要求:
手机启动时,应启动我们的应用程序.因此用户无法启动任何其他应用程序.该应用程序将是一维条形码阅读器.
只要手机启动并运行,应用程序就应该是活动的,用户根本无法关闭应用程序.
谢谢你的帮助.
问候,
马尼什