仅在VB.NET中将JSON转换为数组或将JSON转换为XML [英] Convert JSON to Array OR JSON to XML in VB.NET ONLY
本文介绍了仅在VB.NET中将JSON转换为数组或将JSON转换为XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经搜索了几个小时的答案,但没有成功的代码.
I have searched for the answer to this for a few hours with no successful code.
如何在VB.NET中将JSON字符串转换为数组或将JSON字符串转换为XML?我知道如何在C#中执行此操作,因为我已经阅读了数十篇文章,但是,我无法弄清楚如何在VB.NET中实现相同的结果.
How can I convert a JSON string to an array OR a JSON string to XML in VB.NET? I know how to do this in C#, as I have read dozens of articles on it, however, I am unable to figure out how to achieve the same result in VB.NET.
我正在通过System.Web.Extensions.dll(来自Microsoft)使用System.Web.Script命名空间.
I'm using the System.Web.Script namespace via System.Web.Extensions.dll (from Microsoft).
如果需要,我愿意使用其他DLL文件.
I'm willing to use an additional DLL file if needed.
推荐答案
Dim dict = jss.Deserialize(Of Dictionary(Of String, Object))(jsonText)
这篇关于仅在VB.NET中将JSON转换为数组或将JSON转换为XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文