如何使用C ++将XML转换为JSON? [英] How to convert XML to JSON in C++?

查看:1205
本文介绍了如何使用C ++将XML转换为JSON?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了如何在ASP.NET C#(link)中将XML转换为JSON,一个在javascript(在goessner.net/download/prj/jsonxml/)。但还没有找到一个在c ++只需要一个字符串作为输入(或一个tinyxml节点,因为我使用该库)。

I came across How to convert XML to JSON in ASP.NET C# (link) and one in javascript (at goessner.net/download/prj/jsonxml/). But have yet to find one in c++ that takes just a string as input (Or a tinyxml node as I'm using that library).

推荐答案

到目前为止,在互联网上找到的唯一专门设计的C ++库直接将XML转换为JSON,xml2json https://github.com/Cheedoong/xml2json

By far, the only specifically designed C++ library that directly converts XML to JSON I found on the Internet is xml2json: https://github.com/Cheedoong/xml2json

这篇关于如何使用C ++将XML转换为JSON?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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