我解析JSON
JSONObject json = jParser.getJSONFromUrl();
json.toString();
在调试“json.toString()”时,我看不到整行,因为行太长了
事实证明这与此类似
"{"VehiclePartItems":[],"BrandItems":[],"TabletSurveyTasksItems":[{"Brand":"Infiniti","ShippingAgentNativeName":"ÐÐТÐ-13061","Model":"FX37","SecondDriverShortNativeName":null,"ShippingAgentUnitId":"3700bc0b-17cc-47c9-8bca-cd78a258a592","FirstDriverEnglishName":"Saranchuk Viktor Vasyliovych","Vin":"JN1TCNS51U0442875","FirstDriverShortNativeName":"СаÑанÑÑк Ð. Ð.","SecondDriverNativeName":" ","SurveyPointNativeName":"ТеÑмÑнал ÐвÑологÑÑÑика","RowState":2,"TruckPlateNumber":"AA1939HE","FirstDriverNativeName":"СаÑанÑÑк ÐÑкÑÐ¾Ñ ÐаÑилÑовиÑ","ReportNumber":"2011\/640758","CarrierNativeName":"ÐÐТÐ-13061","RowVer":[0,0,0,0,1,160,127,245],"SurveyPointUnitId":"62e12548-0a68-4999-960b-a3bb3c44675c","SecondDriverShortEnglishName":null,"ShippingAgentEnglishName":"KATP-13061 PJSC","SecondDriverEnglishName":" ","CarrierEnglishName":"KATP-13061 PJSC","TrailerPlateNumber":"AA9774XP","CarrierUnitId":"3700bc0b-17cc-47c9-8bca-cd78a258a592","Id":"3341661f-8a70-4a8f-b7b0-..."
如何查看所有内容?
答案 0 :(得分:2)
在Eclipse
调试期间右键单击文本区域并选择Max length...
(Wrap text
也可能有帮助。)
答案 1 :(得分:0)
大多数IDE在调试时使用.toString()
方法处理变量。
使用Eclipse启动调试工具(运行图标附近的绿色错误图标)并在json.toString();
处放置一个断点然后鼠标吼到代码行上方的json
变量。
希望它有所帮助!
答案 2 :(得分:0)
使用eclipse提供的变量选项卡。 此选项卡在调试透视图中可见。 如果你看不到它,那么转到windows-show view-variables
结帐here