因此,我正在C#中編寫一個應用程序來從Web上讀取一些信息,但它是一個Windows窗體應用程序。我得到一個JSON字符串,我需要從中獲取一些信息。我知道有一個用於C#Web應用程序的庫,但我如何在Windows窗體應用程序中使用它?在C#Winforms中使用JSON應用程序
6
A
回答
12
這裏有很多JSON庫。這裏有三個建議,你可以看看:
Json.NET,一個相當流行的JSON(去)序列化庫。
ServiceStack's JsonSerializer,根據a comparison in this ServiceStack blog目前最快的JSON(de-)串行器。我相信.NET 4框架也可能有JSON序列化(在
System.Runtime.Serialization.Json
namespace從System.Runtime.Serialization.dll
程序集;命名空間似乎已在.NET 3.5,但在一個不同的程序集中),但我從來沒有仔細看了看。
-4
JSON.NET是無用的VS2012 B/C JSON.NET的的NuGet包斷供的NuGet 2.8和VS2012不能得到任何比的NuGet 2.8更新!
相關問題
- 1. 在C++/CLI(WinForms)應用程序中使用C#WinForms控件
- 2. C#Winforms應用程序打開第二個Winforms應用程序
- 3. 在C#WinForms應用程序中使用Oracle DB
- 4. 在C#winforms應用程序中使用文本框過濾TreeView
- 5. 使用WinForms應用程序中的UrlDecode
- 6. C#winforms應用程序線程同步
- 7. 在web應用程序中調用winforms
- 8. 在WinForms應用程序
- 9. C#Winforms應用程序 - 不是有效的win32應用程序
- 10. 在WinForms應用程序中使用WPF,應用程序資源放在哪裏?
- 11. Winforms c#應用程序datagridview綁定
- 12. 在Winforms應用程序中承載Silverlight應用程序
- 13. 在iPhone應用程序中使用JSON
- 14. 您可以在C++/CLI WinForms應用程序中本地使用C++庫嗎?
- 15. 如何在C#WinForms應用程序中設計工作流程?
- 16. winforms應用程序內存使用
- 17. 使用WebSecurity和.Net winForms應用程序
- 18. 在Winforms應用程序中篩選ReportViewer
- 19. 在MVP WinForms應用程序中驗證
- 20. 在WinForms應用程序中編譯ASPX
- 21. 在WinForms應用程序中獲取DLL
- 22. 使WinForms應用程序WinForms/Console混合使用
- 23. 如何在WinForms C#中使用線程?
- 24. 如何使用C++/CLI編寫Winforms應用程序
- 25. 從Windows應用程序使用Orkut opensocial API C#Winforms
- 26. Excel應用程序沒有開始使用C#Winforms
- 27. 使用Winforms應用程序和c創建Jpegs服務器端#
- 28. WinForms應用程序掛起
- 29. 調試Winforms應用程序
- 30. 部署winforms應用程序
JSON.NET的+1。在你的表單應用程序中也能正常工作。 – timothyclifford 2011-03-20 22:47:51
Json.Net非常好,謝謝! – Cokegod 2011-03-20 23:06:40