Is there a VS plugin for convert a JSON string to an InnerClassEntity class , just like GsonFormat [closed]

假如想象 提交于 2019-12-13 06:45:27

问题


I am a android developer , i am new to vs , i want to develop android app with C# recently, but i can not find any plugin that can convert a JSON string to an InnerClassEntity class, just like GsonFormat, can any one help me , thanks in advance .


回答1:


These are not Visual Studio plugins but can convert JSON to C# classes for cut/pasting into your solution/project, not as nice as using GSONFormat within Android Studio, but it can help get the job done.

JSON C# Class Generator

Or:

Browser based: json2csharp

For consuming JSON within your app, Newtonsoft's Json.NET is very popular:

  • http://www.newtonsoft.com/json
  • Nuget search : Json.NET



回答2:


No Plugin needed! It's built into Visual Studio. Just copy the json into the clipboard and then Edit > Paste Special > Paste JSON as Classes.




回答3:


I always use Json2CSharp for converting my Json to C# Classes. You can either copy and paste your entire JSON string or provide the URL to the JSON. This online tool is highly compatible with JSON.NET (Newtonsoft JSON) library, which is mostly used in all .NET technologies for serializing and de-serializing JSON.



来源:https://stackoverflow.com/questions/36983311/is-there-a-vs-plugin-for-convert-a-json-string-to-an-innerclassentity-class-ju

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!