JSON.NET and Replacing @ Sign in XML to JSON converstion

后端 未结 10 1993
野的像风
野的像风 2020-12-11 01:32

The JSON.NET framework can convert XML to JSON, but it uses the @ sign in the JSON as the attribute. I would rather remove this before sending it to the view. What would b

10条回答
  •  情话喂你
    2020-12-11 01:51

    If you want to access the value of an attribute because of the '@' sign, do the following:

    Navigation["@Type"]
    

提交回复
热议问题