导出仅显示数组计数的JSOn数据 [英] Exporting JSOn data only showing array count
问题描述
您好我有一个程序将输入的数据导出到JSON文件。但是,当我调试信息时,JSON文件会被这段代码覆盖。
{" Flight":[{} {} {} {} {}]}
当我调试程序时,我调用List<>对象显示所有相关信息。
有关错误的任何建议吗?
问候
Tony Greenleaf
Tony Greenleaf
可能无法访问类的类和相关字段或属性。如果合适,请尝试添加
public ,或显示有关 FlightSystem.Flight 的详细信息。
Hi I have a program that exports inputted data to a JSON file. However, when I debug the information the JSON file gets over written with this code.
{ "Flight": [{}{}{}{}{}]}
When I debug the program my call to the List<> object shows all the relevant information.
Any suggestions on what is wrong?
Regards
Tony Greenleaf
Tony Greenleaf
Probably the classes and the relevant fields or properties of your classes are not accessible. Try adding public, if this is suitable, or show details about FlightSystem.Flight.
这篇关于导出仅显示数组计数的JSOn数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!