TinyXML or JsonCpp?
#1
Hi,

Working with a backend that provides both APIs, what's the fastest parser, TinyXML or JsonCpp? And from a network traffic point-of-view, what's the most economical?

BR
Reply
#2
Json is less verbose, so less bandwidth intensive. In general atleast, depends greatly on how they are formatting the data in xml.
* http://stackoverflow.com/questions/26733...eserialisa

Parsing wise I don't think there is much difference, probably depends more on the library used than on the schema.
* http://stackoverflow.com/questions/45964...arsing-xml

Personally I prefer json as its more readable and you know from the parser what type each property have. I usually pick between the two based on what I need to do, in your case I'd pick the one which you parse and use the easiest. Which is the easiest to map from to our binary API, thats the one I'd pick.
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#3
Thanks for the fast response.

Looking at the PVR addons code, TinyXML seems the favourite. Is there a particular reason for this?

BR
Reply

Logout Mark Read Team Forum Stats Members Help
TinyXML or JsonCpp?0