Windows 是否有可以从 C 调用的 JSON API? [英] Does Windows have a JSON API that can be called from C?

查看:31
本文介绍了Windows 是否有可以从 C 调用的 JSON API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows 中是否有可以从 C 调用的本地 JSON 实现?如果不是,那么 .NET 或 C# 呢?或者,如果人们希望在 Windows 应用中使用 JSON 时会使用任何库或实现,该怎么办?

Is there a native implementation of JSON in Windows that I can call from C? If not, what about .NET or C#? Or what if any library or implementation do people use when they wish to use JSON in a Windows app?

推荐答案

是的,有一个内置的 Windows JSON 解析器:http://msdn.microsoft.com/en-us/library/system.web.script.serialization.javascriptserializer.aspx

Yes, there is a built-in Windows JSON parser: http://msdn.microsoft.com/en-us/library/system.web.script.serialization.javascriptserializer.aspx

可以使用 .NET 互操作工具从本机语言调用它 (COMCallable Wrapper),正如第一个答案所暗示的那样,它可能比真正的本机库更适合您.

It can be called from a native language using the .NET interop facilities (COM Callable Wrapper), which may be more work for you than a truly native library, as first answer suggests.

这篇关于Windows 是否有可以从 C 调用的 JSON API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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