是否有用于将 JSON 字符串转换为 InnerClassEntity 类的 VS 插件,就像 GsonFormat [英] Is there a VS plugin for convert a JSON string to an InnerClassEntity class , just like GsonFormat

查看:27
本文介绍了是否有用于将 JSON 字符串转换为 InnerClassEntity 类的 VS 插件,就像 GsonFormat的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名 android 开发人员,我是 vs 新手,我最近想用 C# 开发 android 应用程序,但是我找不到任何可以将 JSON 字符串转换为 InnerClassEntity 类的插件,就像 GsonFormat 一样,任何人都可以帮助我,提前致谢.

解决方案

这些不是 Visual Studio 插件,但可以将 JSON 转换为 C# 类以剪切/粘贴到您的解决方案/项目中,不如在 Android Studio 中使用 GSONFormat 好,但它可以帮助完成工作.

或者:

基于浏览器:json2csharp

为了在您的应用中使用 JSON,Newtonsoft 的 Json.NET 非常受欢迎:

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 .

解决方案

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:

这篇关于是否有用于将 JSON 字符串转换为 InnerClassEntity 类的 VS 插件,就像 GsonFormat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆