我在使用c#从json数组中获取值时遇到了问题。
这是json代码:
{"page":0,"maxElementsPerPage":"2","maxElements":"2","elements":[{"timestamp":"2018-06-20 19:59:30","content":"abc","lat":"...","lng":"..."},...
例如,我用来获取第一个数组中内容的值的代码是:
elements[0].content
发布于 2018-06-22 06:12:12
获取所有内容属性:
content = elements.Select(x => x.content)
发布于 2018-06-22 06:15:24
这不是有效的JSON字符串。
https://stackoverflow.com/questions/50978095
复制相似问题