问题
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